]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adjust acceptance tests to changes in app menu
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Wed, 31 Aug 2022 10:15:10 +0000 (12:15 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Wed, 31 Aug 2022 10:57:16 +0000 (12:57 +0200)
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
tests/acceptance/features/bootstrap/FilesAppContext.php

index 91ca4725a96f9dfad0675c6a1d9cb635e271e36a..124000f878d51f2380f5e8f46a081790370f3cc3 100644 (file)
@@ -46,7 +46,7 @@ class FilesAppContext implements Context, ActorAwareInterface {
         * @return Locator
         */
        private static function appMenu() {
-               return Locator::forThe()->id("appmenu")->
+               return Locator::forThe()->css("header nav.app-menu")->
                                describedAs("App menu in header");
        }
 
@@ -54,7 +54,7 @@ class FilesAppContext implements Context, ActorAwareInterface {
         * @return Locator
         */
        public static function filesItemInAppMenu() {
-               return Locator::forThe()->xpath("/li[@data-id = 'files']")->
+               return Locator::forThe()->xpath("//li[@data-app-id = 'files']")->
                                descendantOf(self::appMenu())->
                                describedAs("Files item in app menu in header");
        }