From 0405c2df8dcb34cf01c20f047528edc662f426dd Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Fri, 5 Nov 2021 15:01:06 +0000 Subject: [PATCH] adding missing activity wait whilst navigating to the room members --- .../java/im/vector/app/ui/robot/RoomSettingsRobot.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vector/src/androidTest/java/im/vector/app/ui/robot/RoomSettingsRobot.kt b/vector/src/androidTest/java/im/vector/app/ui/robot/RoomSettingsRobot.kt index b751953d79..15186fe0c8 100644 --- a/vector/src/androidTest/java/im/vector/app/ui/robot/RoomSettingsRobot.kt +++ b/vector/src/androidTest/java/im/vector/app/ui/robot/RoomSettingsRobot.kt @@ -25,7 +25,9 @@ import com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn import com.adevinta.android.barista.interaction.BaristaDialogInteractions.clickDialogNegativeButton import com.adevinta.android.barista.interaction.BaristaListInteractions.clickListItem import im.vector.app.R +import im.vector.app.espresso.tools.waitUntilActivityVisible import im.vector.app.espresso.tools.waitUntilViewVisible +import im.vector.app.features.roommemberprofile.RoomMemberProfileActivity class RoomSettingsRobot { @@ -121,7 +123,9 @@ class RoomSettingsRobot { private fun navigateToRoomPeople() { // Open first user clickListItem(R.id.roomSettingsRecyclerView, 1) - waitUntilViewVisible(withId(R.id.memberProfilePowerLevelView)) + waitUntilActivityVisible { + waitUntilViewVisible(withId(R.id.memberProfilePowerLevelView)) + } // Verification clickListItem(R.id.matrixProfileRecyclerView, 1)