Update sanity test

This commit is contained in:
Benoit Marty 2021-02-11 11:04:07 +01:00
parent 0571662fe7
commit 5fb273a5c8

View File

@ -277,8 +277,23 @@ class UiAllScreensSanityTest {
assertDisplayed(R.id.roomProfileAvatarView) assertDisplayed(R.id.roomProfileAvatarView)
// Leave // Room addresses
clickListItem(R.id.matrixProfileRecyclerView, 13) clickListItem(R.id.matrixProfileRecyclerView, 13)
onView(isRoot()).perform(waitForView(withText(R.string.room_alias_published_alias_title)))
pressBack()
// Room permissions
clickListItem(R.id.matrixProfileRecyclerView, 15)
onView(isRoot()).perform(waitForView(withText(R.string.room_permissions_title)))
clickOn(R.string.room_permissions_change_room_avatar)
clickDialogNegativeButton()
// Toggle
clickOn(R.string.show_advanced)
clickOn(R.string.hide_advanced)
pressBack()
// Leave
clickListItem(R.id.matrixProfileRecyclerView, 17)
clickDialogNegativeButton() clickDialogNegativeButton()
// Menu share // Menu share
@ -289,27 +304,12 @@ class UiAllScreensSanityTest {
} }
private fun navigateToRoomParameters() { private fun navigateToRoomParameters() {
// Room addresses
clickListItem(R.id.roomSettingsRecyclerView, 4)
onView(isRoot()).perform(waitForView(withText(R.string.room_alias_published_alias_title)))
pressBack()
// Room permissions
clickListItem(R.id.roomSettingsRecyclerView, 6)
onView(isRoot()).perform(waitForView(withText(R.string.room_permissions_title)))
clickOn(R.string.room_permissions_change_room_avatar)
clickDialogNegativeButton()
// Toggle
clickOn(R.string.show_advanced)
clickOn(R.string.hide_advanced)
pressBack()
// Room history readability // Room history readability
clickListItem(R.id.roomSettingsRecyclerView, 8) clickListItem(R.id.roomSettingsRecyclerView, 4)
pressBack() pressBack()
// Room access // Room access
clickListItem(R.id.roomSettingsRecyclerView, 10) clickListItem(R.id.roomSettingsRecyclerView, 6)
pressBack() pressBack()
} }