diff --git a/tests/src/PatternAssertions/FeaturedItemAssert.php b/tests/src/PatternAssertions/FeaturedItemAssert.php index 38bcdcec2c..9dc4781e7a 100644 --- a/tests/src/PatternAssertions/FeaturedItemAssert.php +++ b/tests/src/PatternAssertions/FeaturedItemAssert.php @@ -137,7 +137,7 @@ protected function assertBadges(?array $expected_badges, Crawler $crawler): void if (!isset($badge['label']) || !isset($badge['variant'])) { continue; } - $selector = $base_selector . ' span.ecl-label.ecl-label--' . $badge['variant'] . '.ecl-u-mr-xs'; + $selector = $base_selector . ' span.ecl-label.ecl-label--' . $badge['variant']; self::assertStringContainsString($badge['label'], $crawler->filter($selector)->text()); } }