Improve the GetContentShortcutTest to properly detect the menu item.

This commit is contained in:
MohitMaliFtechiz 2025-03-24 20:10:15 +05:30
parent 00f79df953
commit de3e2311fe

View File

@ -54,10 +54,12 @@ class LibraryRobot : BaseRobot() {
private val zimFileTitle = "Test_Zim" private val zimFileTitle = "Test_Zim"
fun assertGetZimNearbyDeviceDisplayed(composeTestRule: ComposeContentTestRule) { fun assertGetZimNearbyDeviceDisplayed(composeTestRule: ComposeContentTestRule) {
composeTestRule.apply { testFlakyView({
waitForIdle() composeTestRule.apply {
onNodeWithTag(LOCAL_FILE_TRANSFER_MENU_BUTTON_TESTING_TAG).assertIsDisplayed() waitForIdle()
} onNodeWithTag(LOCAL_FILE_TRANSFER_MENU_BUTTON_TESTING_TAG).assertIsDisplayed()
}
})
} }
fun clickFileTransferIcon( fun clickFileTransferIcon(