From cb852ef63bd2997b74d67c999c86b56686370e27 Mon Sep 17 00:00:00 2001 From: "julia.kirschenheuter" Date: Fri, 21 Apr 2023 16:33:10 +0200 Subject: Fix table view Signed-off-by: julia.kirschenheuter --- tests/acceptance/features/bootstrap/UsersSettingsContext.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/acceptance/features/bootstrap/UsersSettingsContext.php b/tests/acceptance/features/bootstrap/UsersSettingsContext.php index 33c47850202..ac516089c11 100644 --- a/tests/acceptance/features/bootstrap/UsersSettingsContext.php +++ b/tests/acceptance/features/bootstrap/UsersSettingsContext.php @@ -82,7 +82,7 @@ class UsersSettingsContext implements Context, ActorAwareInterface { * @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 @@ class UsersSettingsContext implements Context, ActorAwareInterface { * @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']//*[normalize-space() = '$column']")-> describedAs("The $column column in Users Settings"); } @@ -170,7 +170,7 @@ class UsersSettingsContext implements Context, ActorAwareInterface { * @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"); } -- cgit v1.2.3