Skip to content

Commit

Permalink
Add accessibility identifiers to 'submit' and 'cancel' survey buttons
Browse files Browse the repository at this point in the history
In order to ensure in acceptance tests that survey gets shown when engagement ended by operator in background, survey_cancel_button and survey_submit_button accessibility identifiers must be assigned to relevant buttons.

MOB-3612
  • Loading branch information
igorkravchenko committed Oct 2, 2024
1 parent a0e31a4 commit 36fb09f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ extension Survey {
// from getting truncated, for example for large
// dynamic font types.
$0.titleLabel?.lineBreakMode = .byWordWrapping
$0.accessibilityIdentifier = "survey_cancel_button"
}
let submitButton = UIButton(type: .custom).make {
$0.setTitle(Localization.General.submit, for: .normal)
$0.titleLabel?.numberOfLines = 0
$0.titleLabel?.lineBreakMode = .byWordWrapping
$0.accessibilityIdentifier = "survey_submit_button"
}
lazy var buttonStackView = UIStackView.make(.horizontal, spacing: 16)(
cancelButton,
Expand Down

0 comments on commit 36fb09f

Please sign in to comment.