mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -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")
|
||||
note {
|
||||
assertHomePageIsLoadedOfTestZimFile()
|
||||
clickOnNoteMenuItem(context)
|
||||
assertNoteDialogDisplayed()
|
||||
writeDemoNote()
|
||||
saveNote()
|
||||
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()
|
||||
assertToolbarExist()
|
||||
assertNoteRecyclerViewExist()
|
||||
@ -222,9 +217,6 @@ class NoteFragmentTest : BaseActivityTest() {
|
||||
pressBack()
|
||||
// to close the notes fragment.
|
||||
pressBack()
|
||||
|
||||
// now test the testzim.zim file is successfully loaded in the ZimFileReader.
|
||||
assertHomePageIsLoadedOfTestZimFile()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user