Skip to content

Commit

Permalink
Merge branch 'task/remove-blazy-n-slick' of github.com:thunder/thunde…
Browse files Browse the repository at this point in the history
…r-distribution into task/remove-blazy-n-slick
  • Loading branch information
ol0lll committed Jul 11, 2024
2 parents 6e23491 + d622721 commit c71b58a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion tests/src/FunctionalJavascript/MediaGalleryModifyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ public function testAddRemove(): void {

$this->clickSave();


// Check that there are 4 images in gallery.
$this->assertEquals(
4,
Expand Down
7 changes: 5 additions & 2 deletions tests/src/FunctionalJavascript/NodeCreationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,11 @@ public function testCreateNode(string $contentType, string $contentTypeDisplayNa
$this->assertSession()->pageTextContains('Awesome text');

// Check Gallery paragraph. Ensure that there are 2 images in gallery.
$this->assertSession()
->elementsCount('xpath', '//div[contains(@class, "field--name-field-paragraphs")]/div[contains(@class, "field__item")][3]//div[contains(@class, "slick-track")]/div[not(contains(@class, "slick-cloned"))]//img', 2);
$this->assertEquals(
2,
$this->getSession()->evaluateScript('document.querySelectorAll("div.field--name-field-media-images div.field__item img").length'),
'There should be five images shown in frontend.'
);

// Check Quote paragraph.
$this->assertSession()->pageTextContains('Awesome quote');
Expand Down

0 comments on commit c71b58a

Please sign in to comment.