summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/View controllers
diff options
context:
space:
mode:
authorAndrew Bulhak <andrew.bulhak@mullvad.net>2024-12-19 16:57:13 +0100
committeracb-mv <158061187+acb-mv@users.noreply.github.com>2025-01-02 10:05:47 +0100
commit5fa64e87b65e2b8cd99d3df4f4d76bf86c1507ea (patch)
treea5dff3e368f7444c0a0b6171a49440d4680b31fb /ios/MullvadVPN/View controllers
parent3eed252d030eadd388332d5599452ea6f62fed07 (diff)
downloadmullvadvpn-5fa64e87b65e2b8cd99d3df4f4d76bf86c1507ea.tar.xz
mullvadvpn-5fa64e87b65e2b8cd99d3df4f4d76bf86c1507ea.zip
Fix testVerifySettingsStillChanged to work with new UI
Diffstat (limited to 'ios/MullvadVPN/View controllers')
-rw-r--r--ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsCellFactory.swift3
1 files changed, 3 insertions, 0 deletions
diff --git a/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsCellFactory.swift b/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsCellFactory.swift
index 3f0b75c9e1..b1f1c9fd59 100644
--- a/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsCellFactory.swift
+++ b/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsCellFactory.swift
@@ -39,6 +39,7 @@ final class VPNSettingsCellFactory: CellFactoryProtocol {
// swiftlint:disable:next cyclomatic_complexity function_body_length
func configureCell(_ cell: UITableViewCell, item: VPNSettingsDataSource.Item, indexPath: IndexPath) {
+ (cell as? SettingsCell)?.detailTitleLabel.accessibilityIdentifier = nil
switch item {
case .dnsSettings:
guard let cell = cell as? SettingsCell else { return }
@@ -154,6 +155,7 @@ final class VPNSettingsCellFactory: CellFactoryProtocol {
), viewModel.obfuscationUpdOverTcpPort.description)
cell.setAccessibilityIdentifier(item.accessibilityIdentifier)
+ cell.detailTitleLabel.setAccessibilityIdentifier(.wireGuardObfuscationUdpOverTcpPort)
cell.applySubCellStyling()
cell.buttonAction = { [weak self] in
@@ -178,6 +180,7 @@ final class VPNSettingsCellFactory: CellFactoryProtocol {
), viewModel.obfuscationShadowsocksPort.description)
cell.setAccessibilityIdentifier(item.accessibilityIdentifier)
+ cell.detailTitleLabel.setAccessibilityIdentifier(.wireGuardObfuscationShadowsocksPort)
cell.applySubCellStyling()
cell.buttonAction = { [weak self] in