mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Refactored the NoteFragmentTest according to this new change.
This commit is contained in:
parent
7acbbb54c0
commit
93b6448362
@ -201,17 +201,12 @@ class NoteFragmentTest : BaseActivityTest() {
|
|||||||
}
|
}
|
||||||
loadZimFileInReader("testzim.zim")
|
loadZimFileInReader("testzim.zim")
|
||||||
note {
|
note {
|
||||||
|
assertHomePageIsLoadedOfTestZimFile()
|
||||||
clickOnNoteMenuItem(context)
|
clickOnNoteMenuItem(context)
|
||||||
assertNoteDialogDisplayed()
|
assertNoteDialogDisplayed()
|
||||||
writeDemoNote()
|
writeDemoNote()
|
||||||
saveNote()
|
saveNote()
|
||||||
pressBack()
|
pressBack()
|
||||||
}
|
|
||||||
|
|
||||||
// switch the zim file so that we can test this scenario where opening
|
|
||||||
// the zim file properly open in the reader screen.
|
|
||||||
loadZimFileInReader("small.zim")
|
|
||||||
note {
|
|
||||||
openNoteFragment()
|
openNoteFragment()
|
||||||
assertToolbarExist()
|
assertToolbarExist()
|
||||||
assertNoteRecyclerViewExist()
|
assertNoteRecyclerViewExist()
|
||||||
@ -222,9 +217,6 @@ class NoteFragmentTest : BaseActivityTest() {
|
|||||||
pressBack()
|
pressBack()
|
||||||
// to close the notes fragment.
|
// to close the notes fragment.
|
||||||
pressBack()
|
pressBack()
|
||||||
|
|
||||||
// now test the testzim.zim file is successfully loaded in the ZimFileReader.
|
|
||||||
assertHomePageIsLoadedOfTestZimFile()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user