Skip to content

Commit

Permalink
Add config
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Oct 24, 2020
1 parent 0af751f commit ad9f73a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,15 @@ jobs:
test_path: e2e-tests/gatsby-static-image
test_command: yarn test

e2e_tests_visual-regression:
<<: *e2e-executor
steps:
- e2e-test:
test_path: e2e-tests/visual-regression
test_command: yarn test
- store_artifacts:
path: /tmp/__diff_output__

starters_validate:
executor: node
steps:
Expand Down
6 changes: 4 additions & 2 deletions e2e-tests/visual-regression/cypress/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
// ***********************************************************

import "gatsby-cypress"
import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command';
import { addMatchImageSnapshotCommand } from "cypress-image-snapshot/command"

addMatchImageSnapshotCommand();
addMatchImageSnapshotCommand({
customDiffDir: `/tmp/__diff_output__`,
})
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Page = () => {
file(relativePath: { eq: "landsend.jpg" }) {
childImageSharp {
# gatsbyImage(width: 500, height: 500, layout: FIXED) { Disabled until bug is fixed
gatsbyImage(width: 500, layout: FIXED) {
gatsbyImage(width: 550, layout: FIXED) {
imageData
}
}
Expand Down

0 comments on commit ad9f73a

Please sign in to comment.