Skip to content

Commit

Permalink
Allow time for other image
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Dec 15, 2020
1 parent 7faa8e4 commit 7f1cd2a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe(`gatsby-plugin-image / native lazy loading`, () => {
// can resolve. This is necessary because the assertion
// is done outside the Cypress scheduler and so, Cypress is not able
// to ping for the specific assertion to be truthy.
cy.wait(500)
cy.wait(1000)
cy.get(`[data-cy=already-loaded]`)
.should(`be.visible`)
.then($img => {
Expand Down
2 changes: 0 additions & 2 deletions e2e-tests/gatsby-static-image/src/pages/lazy-loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default function NativeLazyLoadingPage() {
height={59}
alt="Citrus fruits"
loading="lazy"
formats={["jpg"]}
/>

<div style={{ height: `5000px`, background: `#F4F4F4` }} />
Expand All @@ -23,7 +22,6 @@ export default function NativeLazyLoadingPage() {
height={59}
alt="Citrus fruits"
loading="lazy"
formats={["jpg"]}
/>
</div>
)
Expand Down

0 comments on commit 7f1cd2a

Please sign in to comment.