Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 6611846

Browse files
authored
Merge pull request #94 from wordpress-mobile/add/accessibility-identifiers-for-tests
Add accessibility identifiers for UI tests
2 parents 1c5bda1 + ef152b8 commit 6611846

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

WordPressAuthenticator.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "WordPressAuthenticator"
3-
s.version = "1.5.0-beta.1"
3+
s.version = "1.5.0-beta.2"
44
s.summary = "WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps."
55

66
s.description = <<-DESC

WordPressAuthenticator/NUX/NUXLinkMailViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ class NUXLinkMailViewController: LoginViewController {
5151
let openMailButtonTitle = NSLocalizedString("Open Mail", comment: "Title of a button. The text should be capitalized. Clicking opens the mail app in the user's iOS device.")
5252
openMailButton?.setTitle(openMailButtonTitle, for: .normal)
5353
openMailButton?.setTitle(openMailButtonTitle, for: .highlighted)
54+
openMailButton?.accessibilityIdentifier = "Open Mail Button"
5455

5556
let usePasswordTitle = NSLocalizedString("Enter your password instead.", comment: "Title of a button on the magic link screen.")
5657
usePasswordButton?.setTitle(usePasswordTitle, for: .normal)
5758
usePasswordButton?.setTitle(usePasswordTitle, for: .highlighted)
5859
usePasswordButton?.titleLabel?.numberOfLines = 0
60+
usePasswordButton?.accessibilityIdentifier = "Use Password"
5961

6062
guard let emailMagicLinkSource = emailMagicLinkSource else {
6163
return

WordPressAuthenticator/Signin/LoginLinkRequestViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class LoginLinkRequestViewController: LoginViewController {
6161
let sendLinkButtonTitle = NSLocalizedString("Send Link", comment: "Title of a button. The text should be uppercase. Clicking requests a hyperlink be emailed ot the user.")
6262
sendLinkButton?.setTitle(sendLinkButtonTitle, for: .normal)
6363
sendLinkButton?.setTitle(sendLinkButtonTitle, for: .highlighted)
64+
sendLinkButton?.accessibilityIdentifier = "Send Link Button"
6465

6566
let usePasswordTitle = NSLocalizedString("Enter your password instead.", comment: "Title of a button. ")
6667
usePasswordButton?.setTitle(usePasswordTitle, for: .normal)

0 commit comments

Comments
 (0)