Skip to content

Commit

Permalink
Merge branch 'add/magic-link-auth' into lantean/1605-invalid-link-alert
Browse files Browse the repository at this point in the history
  • Loading branch information
jleandroperez committed Jul 1, 2024
2 parents 86af35a + 0c8cc26 commit ff81101
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ only_rules:
# - trailing_whitespace

# - vertical_whitespace

- custom_rules

# Rules configuration
Expand Down
4 changes: 2 additions & 2 deletions Simplenote/SPAppDelegate+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -452,13 +452,13 @@ extension SPAppDelegate {
func performMagicLinkAuthentication(with url: URL) -> Bool {
MagicLinkAuthenticator(authenticator: simperium.authenticator).handle(url: url)
}

@objc(performMagicLinkAuthenticationWithUserActivity:)
func performMagicLinkAuthentication(with userActivity: NSUserActivity) -> Bool {
guard let url = userActivity.webpageURL else {
return false
}

return performMagicLinkAuthentication(with: url)
}
}
Expand Down
1 change: 1 addition & 0 deletions SimplenoteUITests/EmailLogin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class EmailLogin {

class func logIn(email: String, password: String) {
enterEmail(enteredValue: email)
app.buttons[UID.Button.continueWithPassword].tap()
enterPassword(enteredValue: password)
app.buttons[UID.Button.logIn].tap()
handleSavePasswordPrompt()
Expand Down
1 change: 1 addition & 0 deletions SimplenoteUITests/UIDs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ enum UID {
static let menu = "menu"
static let signUp = "Sign Up"
static let logIn = "Log In"
static let continueWithPassword = "Continue with Password"
static let logInWithEmail = "Log in with email"
static let allNotes = "All Notes"
static let trash = "Trash"
Expand Down

0 comments on commit ff81101

Please sign in to comment.