diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-05-22 08:36:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-22 08:36:11 +0200 |
commit | 43eb424da1eae14d931db95c067361052f4d21de (patch) | |
tree | 305c8d072d5e7b06cfaf120ad01f8615931deb09 /tests | |
parent | 462f12611c059b619881fe972e06d0eb175c1af2 (diff) | |
parent | 41412088db32a6223ce92fafde5392ccb11e87ee (diff) | |
download | nextcloud-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.php | 11 |
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(); } /** |