Improved the NoteFragmentTest.

This commit is contained in:
MohitMaliFtechiz 2025-08-07 17:53:01 +05:30
parent 2ff002143c
commit 3226709d77
2 changed files with 1 additions and 5 deletions

View File

@ -191,10 +191,6 @@ class NoteFragmentTest : BaseActivityTest() {
clickOnSavedNote(composeTestRule)
clickOnOpenNote(composeTestRule)
assertNoteSaved(composeTestRule)
// to close the note dialog.
pressBack()
// to close the notes fragment.
pressBack()
}
}

View File

@ -152,7 +152,7 @@ class KiwixReaderFragmentTest : BaseActivityTest() {
pressBack()
checkZimFileLoadedSuccessful(composeTestRule)
}
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.N_MR1) {
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.N_MR1 && Build.VERSION.SDK_INT != Build.VERSION_CODES.TIRAMISU) {
// temporary disabled on Android 25
LeakAssertions.assertNoLeaks()
}