diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2021-05-25 12:36:27 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2021-05-27 16:04:33 +0200 |
| commit | 2e742850b4e17d36bde93aaafcd1a86180485cd9 (patch) | |
| tree | ae8896b86929b8bfd17305f56d6567894ef634d6 | |
| parent | 73f885dd9d58e3dfb7756192357206d0d591cea2 (diff) | |
| download | mullvadvpn-2e742850b4e17d36bde93aaafcd1a86180485cd9.tar.xz mullvadvpn-2e742850b4e17d36bde93aaafcd1a86180485cd9.zip | |
Add missing accessibility identifiers
| -rw-r--r-- | ios/MullvadVPN/ConsentContentView.swift | 1 | ||||
| -rw-r--r-- | ios/MullvadVPN/LoginContentView.swift | 2 | ||||
| -rw-r--r-- | ios/MullvadVPN/LoginViewController.swift | 5 |
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 = { |
