Skip to content

Commit 77e8332

Browse files
fixup! Fix table view
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
1 parent 09547d1 commit 77e8332

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/acceptance/features/bootstrap/UsersSettingsContext.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static function createNewUserButton() {
8282
* @return Locator
8383
*/
8484
public static function rowForUser($user) {
85-
return Locator::forThe()->css("div.user-list-grid div.row[data-id=$user]")->
85+
return Locator::forThe()->css("table.user-list-grid tr.row[data-id=$user]")->
8686
describedAs("Row for user $user in Users Settings");
8787
}
8888

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

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

0 commit comments

Comments
 (0)