Skip to content

Commit

Permalink
Made DNS settings table view identifiable
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasberglund committed May 16, 2024
1 parent c18b1e7 commit 41a1f19
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ios/MullvadVPN/Classes/AccessbilityIdentifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public enum AccessibilityIdentifier: String {
case editCustomListEditLocationsView
case editCustomListEditLocationsTableView
case relayFilterChipView
case dnsSettingsTableView

// Other UI elements
case accessMethodEnableSwitch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class CustomDNSViewController: UITableViewController, VPNSettingsDataSourceDeleg
override func viewDidLoad() {
super.viewDidLoad()

tableView.accessibilityIdentifier = .dnsSettingsTableView
tableView.backgroundColor = .secondaryColor
tableView.separatorColor = .secondaryColor
tableView.rowHeight = UITableView.automaticDimension
Expand Down
2 changes: 1 addition & 1 deletion ios/MullvadVPNUITests/Pages/DNSSettingsPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class DNSSettingsPage: Page {
@discardableResult override init(_ app: XCUIApplication) {
super.init(app)

self.pageElement = app.otherElements[.dnsSettings]
self.pageElement = app.tables[.dnsSettingsTableView]
waitForPageToBeShown()
}

Expand Down

0 comments on commit 41a1f19

Please sign in to comment.