adding missing activity wait whilst navigating to the room members

This commit is contained in:
Adam Brown 2021-11-05 15:01:06 +00:00
parent 803929ea45
commit 0405c2df8d

View file

@ -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.BaristaDialogInteractions.clickDialogNegativeButton
import com.adevinta.android.barista.interaction.BaristaListInteractions.clickListItem import com.adevinta.android.barista.interaction.BaristaListInteractions.clickListItem
import im.vector.app.R import im.vector.app.R
import im.vector.app.espresso.tools.waitUntilActivityVisible
import im.vector.app.espresso.tools.waitUntilViewVisible import im.vector.app.espresso.tools.waitUntilViewVisible
import im.vector.app.features.roommemberprofile.RoomMemberProfileActivity
class RoomSettingsRobot { class RoomSettingsRobot {
@ -121,7 +123,9 @@ class RoomSettingsRobot {
private fun navigateToRoomPeople() { private fun navigateToRoomPeople() {
// Open first user // Open first user
clickListItem(R.id.roomSettingsRecyclerView, 1) clickListItem(R.id.roomSettingsRecyclerView, 1)
waitUntilViewVisible(withId(R.id.memberProfilePowerLevelView)) waitUntilActivityVisible<RoomMemberProfileActivity> {
waitUntilViewVisible(withId(R.id.memberProfilePowerLevelView))
}
// Verification // Verification
clickListItem(R.id.matrixProfileRecyclerView, 1) clickListItem(R.id.matrixProfileRecyclerView, 1)