diff --git a/e2e-tests/gatsby-image/cypress/integration/fluid.js b/e2e-tests/gatsby-image/cypress/integration/fluid.js index 3c88d0c282a90..8ee4f7d87eea0 100644 --- a/e2e-tests/gatsby-image/cypress/integration/fluid.js +++ b/e2e-tests/gatsby-image/cypress/integration/fluid.js @@ -9,7 +9,7 @@ describe(`fluid`, () => { cy.getTestElement(fluidTestId) .find(`.gatsby-image-wrapper > div`) .should(`have.attr`, `style`) - .and(`match`, /width:100%;padding-bottom/) + .and(`match`, /width: 100%; padding-bottom/) }) it(`renders sizes`, () => { diff --git a/e2e-tests/gatsby-image/cypress/integration/image.js b/e2e-tests/gatsby-image/cypress/integration/image.js index 9ef531b4028c5..22d1ca9ddf75d 100644 --- a/e2e-tests/gatsby-image/cypress/integration/image.js +++ b/e2e-tests/gatsby-image/cypress/integration/image.js @@ -14,11 +14,11 @@ describe(`Production gatsby-image`, () => { .should(`eq`, 1) }) - it(`contains position relative`, () => { + it(`has position relative`, () => { cy.getTestElement(fluidTestId) .find(`.gatsby-image-wrapper`) .should(`have.attr`, `style`) - .and(`contains`, `position:relative`) + .and(`match`, /position: relative/) }) }) })