summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-05-22 08:36:11 +0200
committerGitHub <noreply@github.com>2017-05-22 08:36:11 +0200
commit43eb424da1eae14d931db95c067361052f4d21de (patch)
tree305c8d072d5e7b06cfaf120ad01f8615931deb09 /tests
parent462f12611c059b619881fe972e06d0eb175c1af2 (diff)
parent41412088db32a6223ce92fafde5392ccb11e87ee (diff)
downloadnextcloud-server-43eb424da1eae14d931db95c067361052f4d21de.tar.gz
nextcloud-server-43eb424da1eae14d931db95c067361052f4d21de.zip
Merge pull request #5009 from nextcloud/update-acceptance-tests-for-issue-4921
Update acceptance tests for issue #4921
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/features/bootstrap/FilesAppContext.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/acceptance/features/bootstrap/FilesAppContext.php b/tests/acceptance/features/bootstrap/FilesAppContext.php
index e769820c9ee..5916fd4bec6 100644
--- a/tests/acceptance/features/bootstrap/FilesAppContext.php
+++ b/tests/acceptance/features/bootstrap/FilesAppContext.php
@@ -210,6 +210,13 @@ class FilesAppContext implements Context, ActorAwareInterface {
/**
* @return Locator
*/
+ public static function detailsMenuItem() {
+ return self::fileActionsMenuItemFor("Details");
+ }
+
+ /**
+ * @return Locator
+ */
public static function viewFileInFolderMenuItem() {
return self::fileActionsMenuItemFor("View in folder");
}
@@ -234,7 +241,9 @@ class FilesAppContext implements Context, ActorAwareInterface {
* @Given I open the details view for :fileName
*/
public function iOpenTheDetailsViewFor($fileName) {
- $this->actor->find(self::mainLinkForFile($fileName), 10)->click();
+ $this->actor->find(self::fileActionsMenuButtonForFile($fileName), 10)->click();
+
+ $this->actor->find(self::detailsMenuItem(), 2)->click();
}
/**