Skip to content

Commit ae1b70e

Browse files
committed
Selecting a cell in a specific table
1 parent 183d1aa commit ae1b70e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

WordPress/Classes/ViewRelated/Domains/Domain registration/RegisterDomainSuggestions/DomainSuggestionsTableViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ class DomainSuggestionsTableViewController: UITableViewController {
8080

8181
let bundle = WordPressAuthenticator.bundle
8282
tableView.register(UINib(nibName: "SearchTableViewCell", bundle: bundle), forCellReuseIdentifier: SearchTableViewCell.reuseIdentifier)
83+
tableView.accessibilityIdentifier = "DomainSuggestionsTable"
8384
setupBackgroundTapGestureRecognizer()
8485
}
8586

WordPress/UITestsFoundation/Screens/DomainsSuggestionsScreen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class DomainsSuggestionsScreen: ScreenObject {
3232

3333
@discardableResult
3434
public func selectDomain() throws -> Self {
35-
app.cells.lastMatch?.tap()
35+
app.tables["DomainSuggestionsTable"].cells.lastMatch?.tap()
3636
return self
3737
}
3838

0 commit comments

Comments
 (0)