From 77e83320e339c376ed72a903ae031fe9926768de Mon Sep 17 00:00:00 2001 From: "julia.kirschenheuter" Date: Thu, 4 May 2023 12:56:54 +0200 Subject: [PATCH] fixup! Fix table view Signed-off-by: julia.kirschenheuter --- .../acceptance/features/bootstrap/UsersSettingsContext.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/acceptance/features/bootstrap/UsersSettingsContext.php b/tests/acceptance/features/bootstrap/UsersSettingsContext.php index 33c4785020279..4624276d8571a 100644 --- a/tests/acceptance/features/bootstrap/UsersSettingsContext.php +++ b/tests/acceptance/features/bootstrap/UsersSettingsContext.php @@ -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"); } @@ -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"); } @@ -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"); }