Skip to content

Commit

Permalink
EWPP-2575: Fix featured item pattern assertions for badges.
Browse files Browse the repository at this point in the history
  • Loading branch information
22Alexandra committed Oct 31, 2022
1 parent 628878d commit 5b41462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/PatternAssertions/FeaturedItemAssert.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit 5b41462

Please sign in to comment.