From 8ffa679467c6e799b0ccb427b6bf22887689272b Mon Sep 17 00:00:00 2001 From: pookmish Date: Fri, 15 Mar 2024 09:28:22 -0700 Subject: [PATCH] 11.3.1 --- CHANGELOG.md | 4 ++++ stanford_profile.info.yml | 2 +- tests/codeception/functional/Paragraphs/WYSIWYGCest.php | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49242bb2..e3341885 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/stanford_profile.info.yml b/stanford_profile.info.yml index 24f8542b..4a139893 100644 --- a/stanford_profile.info.yml +++ b/stanford_profile.info.yml @@ -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 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); } /**