diff --git a/tests/src/Functional/TwigTweakTest.php b/tests/src/Functional/TwigTweakTest.php index 28a86e4..9d0104a 100644 --- a/tests/src/Functional/TwigTweakTest.php +++ b/tests/src/Functional/TwigTweakTest.php @@ -231,7 +231,7 @@ class TwigTweakTest extends BrowserTestBase { self::assertEquals($link, trim($this->xpath($xpath)[0]->getHtml())); // Test status messages. - $xpath = '//div[@class = "tt-messages"]/div[contains(@class, "messages--status") and contains(., "Hello world!")]'; + $xpath = '//div[@class = "tt-messages"]//div[contains(@class, "messages--status") and contains(., "Hello world!")]'; $this->assertByXpath($xpath); // Test breadcrumb.