Skip to content

Commit 7f1cd2a

Browse files
committed
Allow time for other image
1 parent 7faa8e4 commit 7f1cd2a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

e2e-tests/gatsby-static-image/cypress/integration/native-lazy-loading.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe(`gatsby-plugin-image / native lazy loading`, () => {
1111
// can resolve. This is necessary because the assertion
1212
// is done outside the Cypress scheduler and so, Cypress is not able
1313
// to ping for the specific assertion to be truthy.
14-
cy.wait(500)
14+
cy.wait(1000)
1515
cy.get(`[data-cy=already-loaded]`)
1616
.should(`be.visible`)
1717
.then($img => {

e2e-tests/gatsby-static-image/src/pages/lazy-loading.js

-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export default function NativeLazyLoadingPage() {
1111
height={59}
1212
alt="Citrus fruits"
1313
loading="lazy"
14-
formats={["jpg"]}
1514
/>
1615

1716
<div style={{ height: `5000px`, background: `#F4F4F4` }} />
@@ -23,7 +22,6 @@ export default function NativeLazyLoadingPage() {
2322
height={59}
2423
alt="Citrus fruits"
2524
loading="lazy"
26-
formats={["jpg"]}
2725
/>
2826
</div>
2927
)

0 commit comments

Comments
 (0)