diff options
| author | Niklas Berglund <niklas.berglund@gmail.com> | 2024-02-26 15:17:11 +0100 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2024-02-28 08:57:33 +0100 |
| commit | 2abc5ed909d6a91f235e55cb373cd1c91bdf4492 (patch) | |
| tree | 27e4821b2a48291ad0e574203b4235613d739b0a /ios/MullvadVPN/View controllers/ProblemReport | |
| parent | 6ddaf845828dc4fc246dc4e242cac3a822e23791 (diff) | |
| download | mullvadvpn-2abc5ed909d6a91f235e55cb373cd1c91bdf4492.tar.xz mullvadvpn-2abc5ed909d6a91f235e55cb373cd1c91bdf4492.zip | |
Add problem report test
Diffstat (limited to 'ios/MullvadVPN/View controllers/ProblemReport')
2 files changed, 3 insertions, 0 deletions
diff --git a/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportSubmissionOverlayView.swift b/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportSubmissionOverlayView.swift index 7cba3d1ec9..a6af41be56 100644 --- a/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportSubmissionOverlayView.swift +++ b/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportSubmissionOverlayView.swift @@ -174,6 +174,8 @@ class ProblemReportSubmissionOverlayView: UIView { override init(frame: CGRect) { super.init(frame: frame) + accessibilityIdentifier = AccessibilityIdentifier.problemReportSubmittedView + addSubviews() transitionToState(state) diff --git a/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportViewController+ViewManagement.swift b/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportViewController+ViewManagement.swift index 30a5e7d2e2..488c48370f 100644 --- a/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportViewController+ViewManagement.swift +++ b/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportViewController+ViewManagement.swift @@ -96,6 +96,7 @@ extension ProblemReportViewController { func makeSendButton() -> AppButton { let button = AppButton(style: .success) + button.accessibilityIdentifier = AccessibilityIdentifier.problemReportSendButton button.translatesAutoresizingMaskIntoConstraints = false button.setTitle(Self.persistentViewModel.sendLogsButtonTitle, for: .normal) button.addTarget(self, action: #selector(handleSendButtonTap), for: .touchUpInside) |
