mirror of
https://github.com/bitwarden/android.git
synced 2024-11-27 12:00:19 +03:00
Fix intermittent failures in Account Switcher tests (#539)
This commit is contained in:
parent
4bbda49d74
commit
e318a316e7
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,7 @@ fun ComposeContentTestRule.assertSwitcherIsDisplayed(
|
|||
accountSummaries: List<AccountSummary>,
|
||||
isAddAccountButtonVisible: Boolean = true,
|
||||
) {
|
||||
this.waitForIdle()
|
||||
accountSummaries.forEach { accountSummary ->
|
||||
this.onNodeWithText(accountSummary.email).assertIsDisplayed()
|
||||
}
|
||||
|
@ -43,6 +44,7 @@ fun ComposeContentTestRule.assertSwitcherIsDisplayed(
|
|||
fun ComposeContentTestRule.assertSwitcherIsNotDisplayed(
|
||||
accountSummaries: List<AccountSummary>,
|
||||
) {
|
||||
this.waitForIdle()
|
||||
accountSummaries.forEach { accountSummary ->
|
||||
this.onNodeWithText(accountSummary.email).assertDoesNotExist()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue