summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ios/MullvadVPN/ConsentContentView.swift1
-rw-r--r--ios/MullvadVPN/LoginContentView.swift2
-rw-r--r--ios/MullvadVPN/LoginViewController.swift5
3 files changed, 7 insertions, 1 deletions
diff --git a/ios/MullvadVPN/ConsentContentView.swift b/ios/MullvadVPN/ConsentContentView.swift
index 9d870ba420..40499a8914 100644
--- a/ios/MullvadVPN/ConsentContentView.swift
+++ b/ios/MullvadVPN/ConsentContentView.swift
@@ -58,6 +58,7 @@ We strongly believe in retaining as little data as possible because we want you
let button = AppButton(style: .default)
button.translatesAutoresizingMaskIntoConstraints = false
button.setTitle(NSLocalizedString("Agree and continue", comment: ""), for: .normal)
+ button.accessibilityIdentifier = "AgreeButton"
return button
}()
diff --git a/ios/MullvadVPN/LoginContentView.swift b/ios/MullvadVPN/LoginContentView.swift
index 714beda334..8f804e556a 100644
--- a/ios/MullvadVPN/LoginContentView.swift
+++ b/ios/MullvadVPN/LoginContentView.swift
@@ -99,6 +99,8 @@ class LoginContentView: UIView {
backgroundColor = .primaryColor
layoutMargins = UIMetrics.contentLayoutMargins
+ accountTextField.accessibilityIdentifier = "LoginTextField"
+
keyboardResponder = AutomaticKeyboardResponder(targetView: self, handler: { [weak self] (view, adjustment) in
self?.contentContainerBottomConstraint?.constant = adjustment
diff --git a/ios/MullvadVPN/LoginViewController.swift b/ios/MullvadVPN/LoginViewController.swift
index 1b59c086fc..a061fffecf 100644
--- a/ios/MullvadVPN/LoginViewController.swift
+++ b/ios/MullvadVPN/LoginViewController.swift
@@ -41,7 +41,10 @@ class LoginViewController: UIViewController, RootContainment {
}()
private lazy var accountInputAccessoryLoginButton: UIBarButtonItem = {
- return UIBarButtonItem(title: NSLocalizedString("Log in", comment: ""), style: .done, target: self, action: #selector(doLogin))
+ let barButtonItem = UIBarButtonItem(title: NSLocalizedString("Log in", comment: ""), style: .done, target: self, action: #selector(doLogin))
+ barButtonItem.accessibilityIdentifier = "LoginBarButtonItem"
+
+ return barButtonItem
}()
private lazy var accountInputAccessoryToolbar: UIToolbar = {