diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-07-26 12:21:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 12:21:13 +0200 |
commit | b4353c46519ffc44c30eb258210911a044bbca41 (patch) | |
tree | a1e4c6299c8814139f5c4d0d27b782b22835e9f1 /tests | |
parent | 7615536977eda7f3bda5c29eaa780a323c97afc7 (diff) | |
parent | bb2557c38974bea38dcc48185723b33781412cbd (diff) | |
download | nextcloud-server-b4353c46519ffc44c30eb258210911a044bbca41.tar.gz nextcloud-server-b4353c46519ffc44c30eb258210911a044bbca41.zip |
Merge pull request #33320 from nextcloud/bugfix/noid/remove-files-duplicate-dom-ids
Replace files app ids to classes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/acceptance/features/bootstrap/FileListContext.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/acceptance/features/bootstrap/FileListContext.php b/tests/acceptance/features/bootstrap/FileListContext.php index ce2bd9971e0..12402c07cc0 100644 --- a/tests/acceptance/features/bootstrap/FileListContext.php +++ b/tests/acceptance/features/bootstrap/FileListContext.php @@ -92,7 +92,7 @@ class FileListContext implements Context, ActorAwareInterface { * @return Locator */ public static function breadcrumbs($fileListAncestor) { - return Locator::forThe()->css("#controls .breadcrumb")-> + return Locator::forThe()->css(".files-controls .breadcrumb")-> descendantOf($fileListAncestor)-> describedAs("Breadcrumbs in file list"); } @@ -101,7 +101,7 @@ class FileListContext implements Context, ActorAwareInterface { * @return Locator */ public static function createMenuButton($fileListAncestor) { - return Locator::forThe()->css("#controls .button.new")-> + return Locator::forThe()->css(".files-controls .button.new")-> descendantOf($fileListAncestor)-> describedAs("Create menu button in file list"); } @@ -186,7 +186,7 @@ class FileListContext implements Context, ActorAwareInterface { * @return Locator */ public static function rowForFile($fileListAncestor, $fileName) { - return Locator::forThe()->xpath("//*[@id = 'fileList']//span[contains(concat(' ', normalize-space(@class), ' '), ' nametext ') and normalize-space() = '$fileName']/ancestor::tr")-> + return Locator::forThe()->xpath("//*[@class = 'files-fileList']//span[contains(concat(' ', normalize-space(@class), ' '), ' nametext ') and normalize-space() = '$fileName']/ancestor::tr")-> descendantOf($fileListAncestor)-> describedAs("Row for file $fileName in file list"); } |