generated from bitwarden/template
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99008ad
commit ac4c3e2
Showing
4 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ class ProfileSwitcherViewTests: BitwardenTestCase { // swiftlint:disable:this ty | |
@MainActor | ||
func test_accountRow_longPress_currentAccount_noLockOrLogout() throws { | ||
processor.state.allowLockAndLogout = false | ||
processor.state.accounts[0].canBeLocked = false | ||
let accountRow = try subject.inspect().find(button: "[email protected]") | ||
XCTAssertThrowsError(try accountRow.labelView().recursiveCallOnLongPressGesture()) | ||
} | ||
|
@@ -106,6 +107,7 @@ class ProfileSwitcherViewTests: BitwardenTestCase { // swiftlint:disable:this ty | |
@MainActor | ||
func test_alternateAccountRow_longPress_currentAccount_noLockOrLogout() throws { | ||
let alternate = ProfileSwitcherItem.fixture( | ||
canBeLocked: false, | ||
email: "[email protected]", | ||
userInitials: "NA" | ||
) | ||
|