Skip to content

Commit

Permalink
fixup! Fix table view
Browse files Browse the repository at this point in the history
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
  • Loading branch information
JuliaKirschenheuter committed May 4, 2023
1 parent 09547d1 commit 77e8332
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/acceptance/features/bootstrap/UsersSettingsContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static function createNewUserButton() {
* @return Locator
*/
public static function rowForUser($user) {
return Locator::forThe()->css("div.user-list-grid div.row[data-id=$user]")->
return Locator::forThe()->css("table.user-list-grid tr.row[data-id=$user]")->
describedAs("Row for user $user in Users Settings");
}

Expand Down Expand Up @@ -144,7 +144,7 @@ public static function theAction($action, $user) {
* @return Locator
*/
public static function theColumn($column) {
return Locator::forThe()->xpath("//div[@class='user-list-grid']//div[normalize-space() = '$column']")->
return Locator::forThe()->xpath("//table[@class='user-list-grid']//td[normalize-space() = '$column']")->
describedAs("The $column column in Users Settings");
}

Expand All @@ -170,7 +170,7 @@ public static function editModeToggle($user) {
* @return Locator
*/
public static function editModeOn($user) {
return Locator::forThe()->css("div.user-list-grid div.row.row--editable[data-id=$user]")->
return Locator::forThe()->css("table.user-list-grid tr.row.row--editable[data-id=$user]")->
describedAs("I see the edit mode is on for the user $user in Users Settings");
}

Expand Down

0 comments on commit 77e8332

Please sign in to comment.