From 62f7e6ba81706a0920582b6e5af5585102ca880c Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 7 Apr 2020 14:32:19 +0200 Subject: [PATCH] tests: fix failing header acceptance test The username is listed in a div with class `fullname` now. Signed-off-by: Azul --- tests/acceptance/features/bootstrap/ContactsMenuContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acceptance/features/bootstrap/ContactsMenuContext.php b/tests/acceptance/features/bootstrap/ContactsMenuContext.php index 1be38b79e7..4cb2e5885d 100644 --- a/tests/acceptance/features/bootstrap/ContactsMenuContext.php +++ b/tests/acceptance/features/bootstrap/ContactsMenuContext.php @@ -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"); }