generated from bitwarden/template
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PM-12012] Remove region parsing from email URL (#947)
- Loading branch information
1 parent
a8d5a6c
commit 1893bd1
Showing
6 changed files
with
11 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,8 +137,7 @@ class AuthCoordinatorTests: BitwardenTestCase { // swiftlint:disable:this type_b | |
subject.navigate(to: .completeRegistrationFromAppLink( | ||
emailVerificationToken: "thisisanamazingtoken", | ||
userEmail: "[email protected]", | ||
fromEmail: true, | ||
region: .unitedStates | ||
fromEmail: true | ||
)) | ||
|
||
let landingAction = try XCTUnwrap(stackNavigator.actions[1]) | ||
|
@@ -173,8 +172,7 @@ class AuthCoordinatorTests: BitwardenTestCase { // swiftlint:disable:this type_b | |
subject.navigate(to: .completeRegistrationFromAppLink( | ||
emailVerificationToken: "thisisanamazingtoken", | ||
userEmail: "[email protected]", | ||
fromEmail: true, | ||
region: .unitedStates | ||
fromEmail: true | ||
)) | ||
subject.navigate(to: .expiredLink) | ||
subject.navigate(to: .startRegistrationFromExpiredLink) | ||
|
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 |
---|---|---|
|
@@ -223,23 +223,7 @@ class AppProcessorTests: BitwardenTestCase { // swiftlint:disable:this type_body | |
XCTAssertEqual(coordinator.routes.last, .auth(.completeRegistrationFromAppLink( | ||
emailVerificationToken: "verificationtoken", | ||
userEmail: "[email protected]", | ||
fromEmail: true, | ||
region: .unitedStates | ||
))) | ||
} | ||
|
||
/// `handleAppLinks(URL)` navigates the user based on the input URL with EU region. | ||
@MainActor | ||
func test_init_handleAppLinks_regionEU() { | ||
// swiftlint:disable:next line_length | ||
let url = URL(string: "https://bitwarden.eu/redirect-connector.html#[email protected]&token=verificationtoken&fromEmail=true") | ||
subject.handleAppLinks(incomingURL: url!) | ||
|
||
XCTAssertEqual(coordinator.routes.last, .auth(.completeRegistrationFromAppLink( | ||
emailVerificationToken: "verificationtoken", | ||
userEmail: "[email protected]", | ||
fromEmail: true, | ||
region: .europe | ||
fromEmail: true | ||
))) | ||
} | ||
|
||
|
@@ -253,8 +237,7 @@ class AppProcessorTests: BitwardenTestCase { // swiftlint:disable:this type_body | |
XCTAssertEqual(coordinator.routes.last, .auth(.completeRegistrationFromAppLink( | ||
emailVerificationToken: "verificationtoken", | ||
userEmail: "[email protected]", | ||
fromEmail: true, | ||
region: .europe | ||
fromEmail: true | ||
))) | ||
} | ||
|
||
|