mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-24 05:04:50 -04:00
#1212 put waits around clicking on book
This commit is contained in:
parent
2e6742f2ef
commit
aa7cf5eff4
@ -54,8 +54,9 @@ class ZimManageRobot : BaseRobot() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun clickOn(book: Book) {
|
fun clickOn(book: Book) {
|
||||||
waitFor(5000L)
|
waitFor(10000L)
|
||||||
clickOn(Text(book.title))
|
clickOn(Text(book.title))
|
||||||
|
waitFor(1000L)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun clickOnSearch() {
|
fun clickOnSearch() {
|
||||||
@ -74,7 +75,7 @@ class ZimManageRobot : BaseRobot() {
|
|||||||
private fun download(func: DownloadRobot.() -> Unit) = DownloadRobot().apply(func)
|
private fun download(func: DownloadRobot.() -> Unit) = DownloadRobot().apply(func)
|
||||||
inner class DownloadRobot : BaseRobot() {
|
inner class DownloadRobot : BaseRobot() {
|
||||||
init {
|
init {
|
||||||
// isVisible(ViewId(R.id.zim_download_root), 20000L)
|
isVisible(ViewId(R.id.zim_download_root), 20000L)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun clickStop() {
|
fun clickStop() {
|
||||||
@ -89,7 +90,7 @@ class ZimManageRobot : BaseRobot() {
|
|||||||
private fun device(func: DeviceRobot.() -> Unit) = DeviceRobot().apply(func)
|
private fun device(func: DeviceRobot.() -> Unit) = DeviceRobot().apply(func)
|
||||||
inner class DeviceRobot : BaseRobot() {
|
inner class DeviceRobot : BaseRobot() {
|
||||||
init {
|
init {
|
||||||
// isVisible(ViewId(R.id.zimfilelist))
|
isVisible(ViewId(R.id.zimfilelist))
|
||||||
}
|
}
|
||||||
|
|
||||||
fun longClickOn(book: Book) {
|
fun longClickOn(book: Book) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user