Skip to content

Commit

Permalink
Merge branch '11.x' of https://github.com/SU-SWS/stanford_profile int…
Browse files Browse the repository at this point in the history
…o 11.x
  • Loading branch information
pookmish committed Mar 15, 2024
2 parents 6f31864 + 8ffa679 commit 14dbb16
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 @@
# SOE 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 soe_profile.info.yml
Original file line number Diff line number Diff line change
@@ -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
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 14dbb16

Please sign in to comment.