]> source.dussan.org Git - nextcloud-server.git/commitdiff
tests: fix failing header acceptance test 20347/head
authorAzul <azul@riseup.net>
Tue, 7 Apr 2020 12:32:19 +0000 (14:32 +0200)
committerAzul <azul@riseup.net>
Tue, 7 Apr 2020 12:57:20 +0000 (14:57 +0200)
The username is listed in a div with class `fullname` now.

Signed-off-by: Azul <azul@riseup.net>
tests/acceptance/features/bootstrap/ContactsMenuContext.php

index 1be38b79e70cbababfb420ed0ee1cbf1828bd7ba..4cb2e5885d59b6190adb2e59dee183b15c649aab 100644 (file)
@@ -66,7 +66,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
         * @return Locator
         */
        private static function menuItemFor($contactName) {
-               return Locator::forThe()->xpath("//*[@class = 'contact' and normalize-space() = '$contactName']")->
+               return Locator::forThe()->xpath("//*[@class = 'full-name' and normalize-space() = '$contactName']")->
                                descendantOf(self::contactsMenu())->
                                describedAs($contactName . " contact in Contacts menu");
        }