Skip to content

Commit

Permalink
chore: Fix e2e gatsby-image integration tests
Browse files Browse the repository at this point in the history
Not entirely clear why this is necessary, but for some reason the small changes have added white-space to the CSS?
  • Loading branch information
polarathene committed Jul 30, 2020
1 parent 99b09be commit 121573d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e-tests/gatsby-image/cypress/integration/fluid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`, () => {
Expand Down
4 changes: 2 additions & 2 deletions e2e-tests/gatsby-image/cypress/integration/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
})
})
})
Expand Down

0 comments on commit 121573d

Please sign in to comment.