From 5b414625d0e863fcda965455d1c8e780bbd1fa85 Mon Sep 17 00:00:00 2001 From: 22Alexandra Date: Fri, 28 Oct 2022 15:56:15 +0300 Subject: [PATCH] EWPP-2575: Fix featured item pattern assertions for badges. --- tests/src/PatternAssertions/FeaturedItemAssert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } }