summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/View controllers/ProblemReport
diff options
context:
space:
mode:
authorNiklas Berglund <niklas.berglund@gmail.com>2024-04-24 14:56:31 +0200
committerBug Magnet <marco.nikic@mullvad.net>2024-06-10 13:10:20 +0200
commitf660c518220de7683e7a3ecb307b10ebe95588a3 (patch)
treee0d1bdc7e24e2137650886d851d5923606dced63 /ios/MullvadVPN/View controllers/ProblemReport
parente47061ff19e3453875fab5d03fcc8aa6316ee3c2 (diff)
downloadmullvadvpn-f660c518220de7683e7a3ecb307b10ebe95588a3.tar.xz
mullvadvpn-f660c518220de7683e7a3ecb307b10ebe95588a3.zip
Move iOS end to end tests to staging environment
Diffstat (limited to 'ios/MullvadVPN/View controllers/ProblemReport')
-rw-r--r--ios/MullvadVPN/View controllers/ProblemReport/ProblemReportReviewViewController.swift5
-rw-r--r--ios/MullvadVPN/View controllers/ProblemReport/ProblemReportViewController+ViewManagement.swift3
2 files changed, 7 insertions, 1 deletions
diff --git a/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportReviewViewController.swift b/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportReviewViewController.swift
index 603b6b34bb..a12d32362a 100644
--- a/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportReviewViewController.swift
+++ b/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportReviewViewController.swift
@@ -24,6 +24,8 @@ class ProblemReportReviewViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
+ view.accessibilityIdentifier = .appLogsView
+
navigationItem.title = NSLocalizedString(
"NAVIGATION_TITLE",
tableName: "ProblemReportReview",
@@ -37,6 +39,7 @@ class ProblemReportReviewViewController: UIViewController {
self?.dismiss(animated: true)
})
)
+ navigationItem.rightBarButtonItem?.accessibilityIdentifier = .appLogsDoneButton
#if DEBUG
navigationItem.leftBarButtonItem = UIBarButtonItem(
@@ -45,8 +48,10 @@ class ProblemReportReviewViewController: UIViewController {
self?.share()
})
)
+ navigationItem.leftBarButtonItem?.accessibilityIdentifier = .appLogsShareButton
#endif
+ textView.accessibilityIdentifier = .problemReportAppLogsTextView
textView.translatesAutoresizingMaskIntoConstraints = false
textView.isEditable = false
textView.font = UIFont.monospacedSystemFont(
diff --git a/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportViewController+ViewManagement.swift b/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportViewController+ViewManagement.swift
index 488c48370f..6d98e9c83b 100644
--- a/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportViewController+ViewManagement.swift
+++ b/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportViewController+ViewManagement.swift
@@ -88,6 +88,7 @@ extension ProblemReportViewController {
func makeViewLogsButton() -> AppButton {
let button = AppButton(style: .default)
+ button.accessibilityIdentifier = .problemReportAppLogsButton
button.translatesAutoresizingMaskIntoConstraints = false
button.setTitle(Self.persistentViewModel.viewLogsButtonTitle, for: .normal)
button.addTarget(self, action: #selector(handleViewLogsButtonTap), for: .touchUpInside)
@@ -96,7 +97,7 @@ extension ProblemReportViewController {
func makeSendButton() -> AppButton {
let button = AppButton(style: .success)
- button.accessibilityIdentifier = AccessibilityIdentifier.problemReportSendButton
+ button.accessibilityIdentifier = .problemReportSendButton
button.translatesAutoresizingMaskIntoConstraints = false
button.setTitle(Self.persistentViewModel.sendLogsButtonTitle, for: .normal)
button.addTarget(self, action: #selector(handleSendButtonTap), for: .touchUpInside)