From 70308c84be4fb5340df8a62ccc7d5d81238b964f Mon Sep 17 00:00:00 2001 From: Brian Yencho Date: Sat, 13 Jan 2024 10:19:12 -0600 Subject: [PATCH] Remove waitForIdle calls from account switcher tests (#598) --- .../bitwarden/ui/util/BitwardenAccountSwitcherTestHelpers.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/src/test/java/com/x8bit/bitwarden/ui/util/BitwardenAccountSwitcherTestHelpers.kt b/app/src/test/java/com/x8bit/bitwarden/ui/util/BitwardenAccountSwitcherTestHelpers.kt index 4a51b76e3..e67b90027 100644 --- a/app/src/test/java/com/x8bit/bitwarden/ui/util/BitwardenAccountSwitcherTestHelpers.kt +++ b/app/src/test/java/com/x8bit/bitwarden/ui/util/BitwardenAccountSwitcherTestHelpers.kt @@ -25,7 +25,6 @@ fun ComposeContentTestRule.assertSwitcherIsDisplayed( accountSummaries: List, 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, ) { - 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()