mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-19 12:26:13 -04:00
Fixed sometimes CI fails in InitialDownloadTest
This commit is contained in:
parent
ad78332565
commit
3de7ad7a0c
@ -68,6 +68,10 @@ class InitialDownloadRobot : BaseRobot() {
|
||||
isVisible(Text("Download book to internal storage?"))
|
||||
}
|
||||
|
||||
fun assertStopDownloadDialogDisplayed() {
|
||||
isVisible(Text("Stop download?"))
|
||||
}
|
||||
|
||||
fun clickOnYesToConfirm() {
|
||||
onView(withText("YES")).perform(click())
|
||||
}
|
||||
|
@ -67,6 +67,7 @@ class InitialDownloadTest : BaseActivityTest() {
|
||||
clickOnYesToConfirm()
|
||||
assertDownloadStart()
|
||||
stopDownload()
|
||||
assertStopDownloadDialogDisplayed()
|
||||
clickOnYesToConfirm()
|
||||
assertDownloadStop()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user