mirror of
https://github.com/bitwarden/android.git
synced 2026-11-19 17:40:12 -06:00
BIT-989 Show region selector as dialog (#180)
This commit is contained in:
committed by
Álison Fernandes
parent
1bd09e42b3
commit
b1457bc499
@@ -240,19 +240,25 @@ class LandingScreenTest : BaseComposeTest() {
|
||||
)
|
||||
}
|
||||
|
||||
// Clicking to open dropdown
|
||||
// Clicking to open dialog
|
||||
composeTestRule
|
||||
.onNodeWithText(Environment.Us.label.toString(resources))
|
||||
.performClick()
|
||||
|
||||
// Clicking item from the dropdown menu
|
||||
// Clicking item on dialog
|
||||
composeTestRule
|
||||
.onNodeWithText(selectedEnvironment.label.toString(resources))
|
||||
.assert(hasAnyAncestor(isDialog()))
|
||||
.performClick()
|
||||
|
||||
verify {
|
||||
viewModel.trySendAction(LandingAction.EnvironmentTypeSelect(selectedEnvironment.type))
|
||||
}
|
||||
|
||||
// Make sure dialog is hidden:
|
||||
composeTestRule
|
||||
.onNode(isDialog())
|
||||
.assertDoesNotExist()
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user