Skip to content

Commit

Permalink
OEL-2166: Adapt gallery test.
Browse files Browse the repository at this point in the history
  • Loading branch information
drishu committed Jan 18, 2023
1 parent 0fd8e05 commit cd49759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/PatternAssertion/GalleryPatternAssert.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ protected function assertGalleryGrid(array $expected, Crawler $crawler): void {

try {
self::assertStringContainsString($item['thumbnail']['rendered'], $thumbnail->html());
$this->assertElementText($item['thumbnail']['caption_title'] ?? NULL, '.bcl-gallery__item-caption > h5', $thumbnail);
$this->assertElementText($item['thumbnail']['caption_title'] ?? NULL, '.bcl-gallery__item-caption > .fs-5', $thumbnail);
$this->assertElementText($item['thumbnail']['caption'] ?? NULL, '.bcl-gallery__item-caption > .bcl-gallery__item-description', $thumbnail);

if ($item['thumbnail']['play_icon'] ?? FALSE) {
Expand Down

0 comments on commit cd49759

Please sign in to comment.