mirror of
https://github.com/bitwarden/android.git
synced 2026-05-11 02:15:43 -05:00
Remove waitForIdle calls from account switcher tests (#598)
This commit is contained in:
@@ -25,7 +25,6 @@ fun ComposeContentTestRule.assertSwitcherIsDisplayed(
|
||||
accountSummaries: List<AccountSummary>,
|
||||
isAddAccountButtonVisible: Boolean = true,
|
||||
) {
|
||||
this.waitForIdle()
|
||||
accountSummaries.forEach { accountSummary ->
|
||||
this.onNodeWithText(accountSummary.email).assertIsDisplayed()
|
||||
}
|
||||
@@ -44,7 +43,6 @@ fun ComposeContentTestRule.assertSwitcherIsDisplayed(
|
||||
fun ComposeContentTestRule.assertSwitcherIsNotDisplayed(
|
||||
accountSummaries: List<AccountSummary>,
|
||||
) {
|
||||
this.waitForIdle()
|
||||
accountSummaries.forEach { accountSummary ->
|
||||
this.onNodeWithText(accountSummary.email).assertDoesNotExist()
|
||||
}
|
||||
@@ -58,7 +56,6 @@ fun ComposeContentTestRule.assertSwitcherIsNotDisplayed(
|
||||
fun ComposeContentTestRule.assertLockOrLogoutDialogIsDisplayed(
|
||||
accountSummary: AccountSummary,
|
||||
) {
|
||||
this.waitForIdle()
|
||||
this
|
||||
.onNode(isDialog())
|
||||
.assertIsDisplayed()
|
||||
@@ -87,7 +84,6 @@ fun ComposeContentTestRule.assertLockOrLogoutDialogIsDisplayed(
|
||||
fun ComposeContentTestRule.assertLogoutConfirmationDialogIsDisplayed(
|
||||
accountSummary: AccountSummary,
|
||||
) {
|
||||
this.waitForIdle()
|
||||
this
|
||||
.onNode(isDialog())
|
||||
.assertIsDisplayed()
|
||||
|
||||
Reference in New Issue
Block a user