Refactored the NoteFragmentTest according to this new change.

This commit is contained in:
MohitMaliFtechiz 2025-01-21 18:40:46 +05:30 committed by Kelson
parent 7acbbb54c0
commit 93b6448362

View File

@ -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()
} }
} }