Skip to content

Commit

Permalink
11.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish authored Mar 15, 2024
1 parent b1e4493 commit 8ffa679
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Stanford Profile

11.3.1
-------------------------------------------------------------------------------
- Fix images and oembed videos to be lazy loading

11.3.0
-------------------------------------------------------------------------------
- Add taxonomy terms to algolia search indexing
Expand Down
2 changes: 1 addition & 1 deletion stanford_profile.info.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Stanford Profile'
description: 'Jumpstart Website Profile'
version: 11.3.0
version: 11.3.1
type: profile
project: Stanford
core_version_requirement: ^9 || ^10
Expand Down
5 changes: 4 additions & 1 deletion tests/codeception/functional/Paragraphs/WYSIWYGCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ public function testImageCategory(FunctionalTester $I) {

/**
* Videos in the WYSIWYG should display correctly.
*
* @group lazyload
*/
public function testEmbeddedVideo(FunctionalTester $I) {
$node = $this->getNodeWithParagraph($I, 'Lorem Ipsum');
Expand Down Expand Up @@ -253,9 +255,10 @@ public function testEmbeddedVideo(FunctionalTester $I) {
$I->click('Save', '.ui-dialog-buttonpane');
$I->waitForElementNotVisible('.ui-dialog');
$I->click('Save');
$I->scrollTo('.oembed-lazyload', 0, 100);
$I->scrollTo('.field-media-oembed-video', 0, 100);
$I->waitForElementVisible('iframe');
$I->canSeeNumberOfElements('iframe', 1);
$I->canSeeNumberOfElements('iframe[loading="lazy"]', 1);
}

/**
Expand Down

0 comments on commit 8ffa679

Please sign in to comment.