]> source.dussan.org Git - nextcloud-server.git/commitdiff
Update acceptance tests for issue #4921 5020/head
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Sun, 21 May 2017 12:45:43 +0000 (14:45 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 22 May 2017 03:50:15 +0000 (22:50 -0500)
Acceptance tests opened the details view by clicking on the middle of
the file row, but due to the changes made in issue #4921 that now opens
the file instead; this commit updates the acceptance tests to open the
details view through the "Details" item in the file actions menu.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
tests/acceptance/features/bootstrap/FilesAppContext.php

index e769820c9eeac26360405cd5eedb764b98164470..5916fd4bec692a75a4e62d00fb3ad8d2b2504dd2 100644 (file)
@@ -207,6 +207,13 @@ class FilesAppContext implements Context, ActorAwareInterface {
                                describedAs("File actions menu in Files app");
        }
 
+       /**
+        * @return Locator
+        */
+       public static function detailsMenuItem() {
+               return self::fileActionsMenuItemFor("Details");
+       }
+
        /**
         * @return Locator
         */
@@ -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();
        }
 
        /**