Skip to content

Commit c62e6b5

Browse files
committed
Take account of scrolling
1 parent 58af787 commit c62e6b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cypress/e2e/test_otter_background_lazyload.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ describe("Check Otter Background Lazyload", function () {
3636
});
3737

3838
it("Otter Section Block should have background lazyloaded", function () {
39+
cy.scrollTo( 0, 500 );
3940
cy.get("#wp-block-themeisle-blocks-advanced-columns-e62611eb")
4041
.eq(0)
4142
.should("have.attr", "class")
@@ -50,8 +51,8 @@ describe("Check Otter Background Lazyload", function () {
5051
});
5152

5253
it("Otter Section Block's Overlay should have background lazyloaded", function () {
53-
cy.get("#wp-block-themeisle-blocks-advanced-columns-e62611eb")
54-
.find(".wp-block-themeisle-blocks-advanced-columns-overlay")
54+
cy.get("#wp-block-themeisle-blocks-advanced-columns-e62611eb")
55+
.find(".wp-block-themeisle-blocks-advanced-columns-overlay")
5556
.eq(0)
5657
.should("have.attr", "class")
5758
.and("include", "optml-bg-lazyloaded");

0 commit comments

Comments
 (0)