summaryrefslogtreecommitdiffstats
path: root/tests/acceptance
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-12-14 00:50:17 +0000
committerChristopher Ng <chrng8@gmail.com>2022-12-14 00:57:57 +0000
commitfb2fb0d2d523174c8355d47df768ad0b23a68da5 (patch)
tree8d2ea31fd18997e09fa0ab708c41d7aa62027813 /tests/acceptance
parent8a1a32fb09725980463c95a5b04a1d2726079c60 (diff)
downloadnextcloud-server-fb2fb0d2d523174c8355d47df768ad0b23a68da5.tar.gz
nextcloud-server-fb2fb0d2d523174c8355d47df768ad0b23a68da5.zip
Revert "Copy to clipboard with button instead of link"
This reverts commit 4ffc022c8b5d2a4df3b1b1452de769c4ad27fe4f. Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r--tests/acceptance/features/bootstrap/FilesAppSharingContext.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/acceptance/features/bootstrap/FilesAppSharingContext.php b/tests/acceptance/features/bootstrap/FilesAppSharingContext.php
index a6ae90d32d0..95398423e3b 100644
--- a/tests/acceptance/features/bootstrap/FilesAppSharingContext.php
+++ b/tests/acceptance/features/bootstrap/FilesAppSharingContext.php
@@ -206,7 +206,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
* @return Locator
*/
public static function copyLinkButton() {
- return Locator::forThe()->css("button.sharing-entry__copy")->
+ return Locator::forThe()->css("a.sharing-entry__copy")->
descendantOf(self::shareLinkRow())->
describedAs("Copy link button in the details view in Files app");
}
@@ -391,7 +391,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
// Clicking on the menu item copies the link to the clipboard, but it is
// not possible to access that value from the acceptance tests. Due to
// this the value of the attribute that holds the URL is used instead.
- $this->actor->getSharedNotebook()["shared link"] = $this->actor->getSession()->evaluateScript("return document.querySelector('.sharing-entry__link').__vue__.shareLink;");
+ $this->actor->getSharedNotebook()["shared link"] = $this->actor->find(self::copyLinkButton(), 2)->getWrappedElement()->getAttribute("href");
}
/**