diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ddb1df7..5e03dd00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # SOE Profile +11.3.1 +------------------------------------------------------------------------------- +- Fix images and oembed videos to be lazy loading + 11.3.0 ------------------------------------------------------------------------------- - Add taxonomy terms to algolia search indexing diff --git a/soe_profile.info.yml b/soe_profile.info.yml index e3ae2e4f..b8fe37a3 100644 --- a/soe_profile.info.yml +++ b/soe_profile.info.yml @@ -1,6 +1,6 @@ name: 'SOE Profile' description: 'Jumpstart Website Profile' -version: 11.3.0 +version: 11.3.1 type: profile project: Stanford core_version_requirement: ^9 || ^10 diff --git a/tests/codeception/functional/Paragraphs/WYSIWYGCest.php b/tests/codeception/functional/Paragraphs/WYSIWYGCest.php index ec84f494..fd21807b 100644 --- a/tests/codeception/functional/Paragraphs/WYSIWYGCest.php +++ b/tests/codeception/functional/Paragraphs/WYSIWYGCest.php @@ -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'); @@ -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); } /**