Skip to content

Commit

Permalink
add tableview identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeshanmakeen committed Oct 1, 2024
1 parent 0beb28b commit 63ab18b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ final class SettingsVC: UIViewController {
self.view.addSubview(disconnectButton)
self.view.addSubview(logoutButton)
self.view.addSubview(tableView)

tableView.accessibilityIdentifier = "settingsTableView"
headerTitle.snp.makeConstraints {
$0.top.equalTo(self.view.safeAreaLayoutGuide)
$0.leading.equalToSuperview().offset(Constants.horizontalOffset)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,28 +72,28 @@ struct UITestSettingsScreen: UITestScreen {
// MARK: - Private functions
private func getRouteOptionCell() -> XCUIElement {
app.activate()
let cell = app.cells[Identifiers.routeOptionCell]
let cell = app.tables["settingsTableView"].cells[Identifiers.routeOptionCell]
XCTAssertTrue(cell.waitForExistence(timeout: UITestWaitTime.long.time))
return cell
}

private func getAWSCloudCell() -> XCUIElement {
app.activate()
let cell = app.cells[Identifiers.awsCloudCell]
let cell = app.tables["settingsTableView"].cells[Identifiers.awsCloudCell]
XCTAssertTrue(cell.waitForExistence(timeout: UITestWaitTime.long.time))
return cell
}

private func getDataProviderCell() -> XCUIElement {
app.activate()
let cell = app.cells[Identifiers.dataProviderCell]
let cell = app.tables["settingsTableView"].cells[Identifiers.dataProviderCell]
XCTAssertTrue(cell.waitForExistence(timeout: UITestWaitTime.long.time))
return cell
}

private func getMapStyleCell() -> XCUIElement {
app.activate()
let cell = app.cells[Identifiers.mapStyleCell]
let cell = app.tables["settingsTableView"].cells[Identifiers.mapStyleCell]
XCTAssertTrue(cell.waitForExistence(timeout: UITestWaitTime.long.time))
return cell
}
Expand Down

0 comments on commit 63ab18b

Please sign in to comment.