Fix tests, there is a new item in the list

This commit is contained in:
Benoit Marty 2022-10-05 16:46:15 +02:00
parent 8934eabc99
commit c76945f9c6
1 changed files with 7 additions and 7 deletions

View File

@ -34,18 +34,18 @@ class RoomSettingsRobot {
fun crawl() { fun crawl() {
// Room settings // Room settings
clickListItem(R.id.matrixProfileRecyclerView, 3) clickListItem(R.id.matrixProfileRecyclerView, 4)
navigateToRoomParameters() navigateToRoomParameters()
pressBack() pressBack()
// Notifications // Notifications
clickListItem(R.id.matrixProfileRecyclerView, 5) clickListItem(R.id.matrixProfileRecyclerView, 6)
pressBack() pressBack()
assertDisplayed(R.id.roomProfileAvatarView) assertDisplayed(R.id.roomProfileAvatarView)
// People // People
clickListItem(R.id.matrixProfileRecyclerView, 7) clickListItem(R.id.matrixProfileRecyclerView, 8)
assertDisplayed(R.id.inviteUsersButton) assertDisplayed(R.id.inviteUsersButton)
navigateToRoomPeople() navigateToRoomPeople()
// Fab // Fab
@ -56,7 +56,7 @@ class RoomSettingsRobot {
assertDisplayed(R.id.roomProfileAvatarView) assertDisplayed(R.id.roomProfileAvatarView)
// Uploads // Uploads
clickListItem(R.id.matrixProfileRecyclerView, 9) clickListItem(R.id.matrixProfileRecyclerView, 10)
// File tab // File tab
clickOn(R.string.uploads_files_title) clickOn(R.string.uploads_files_title)
waitUntilViewVisible(withText(R.string.uploads_media_title)) waitUntilViewVisible(withText(R.string.uploads_media_title))
@ -73,12 +73,12 @@ class RoomSettingsRobot {
// Advanced // Advanced
// Room addresses // Room addresses
clickListItem(R.id.matrixProfileRecyclerView, 15) clickListItem(R.id.matrixProfileRecyclerView, 16)
waitUntilViewVisible(withText(R.string.room_alias_published_alias_title)) waitUntilViewVisible(withText(R.string.room_alias_published_alias_title))
pressBack() pressBack()
// Room permissions // Room permissions
clickListItem(R.id.matrixProfileRecyclerView, 17) clickListItem(R.id.matrixProfileRecyclerView, 18)
waitUntilViewVisible(withText(R.string.room_permissions_change_room_avatar)) waitUntilViewVisible(withText(R.string.room_permissions_change_room_avatar))
clickOn(R.string.room_permissions_change_room_avatar) clickOn(R.string.room_permissions_change_room_avatar)
waitUntilDialogVisible(withId(android.R.id.button2)) waitUntilDialogVisible(withId(android.R.id.button2))
@ -95,7 +95,7 @@ class RoomSettingsRobot {
} }
private fun leaveRoom(block: DialogRobot.() -> Unit) { private fun leaveRoom(block: DialogRobot.() -> Unit) {
clickListItem(R.id.matrixProfileRecyclerView, 13) clickListItem(R.id.matrixProfileRecyclerView, 14)
waitUntilDialogVisible(withId(android.R.id.button2)) waitUntilDialogVisible(withId(android.R.id.button2))
val dialogRobot = DialogRobot() val dialogRobot = DialogRobot()
block(dialogRobot) block(dialogRobot)