Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit b3d473a

Browse files
authored
change label to show applitools difference (#236)
1 parent efa8689 commit b3d473a

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ If you are using [plugins/cra-v3](plugins/cra-v3) it instruments the code on the
258258

259259
## Visual testing
260260

261-
You can use any Cypress [Visual Testing plugin](https://on.cypress.io/plugins#visual-testing) to perform [visual testing](https://on.cypress.io/visual-testing) from the component tests. This repo has several example projects, see [visual-sudoku](examples/visual-sudoku), [visual-testing-with-percy](examples/visual-testing-with-percy), and [visual-testing-with-happo](examples/visual-testing-with-happo).
261+
You can use any Cypress [Visual Testing plugin](https://on.cypress.io/plugins#visual-testing) to perform [visual testing](https://on.cypress.io/visual-testing) from the component tests. This repo has several example projects, see [visual-sudoku](examples/visual-sudoku), [visual-testing-with-percy](examples/visual-testing-with-percy), [visual-testing-with-happo](examples/visual-testing-with-happo), and [visual-testing-with-applitools](examples/visual-testing-with-applitools).
262262

263263
For a larger Do-It-Yourself example with an hour long list of explanation videos, see [bahmutov/sudoku](https://github.com/bahmutov/sudoku) repository.
264264

examples/visual-testing-with-applitools/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ The `cy.eyes*` commands are ignored during local interactive run. On CI, the `cy
1010

1111
![Test result](images/result.png)
1212

13-
For more information, see [Applitools tutorial](https://applitools.com/tutorials/cypress.html)
13+
For more information, see [Applitools tutorial](https://applitools.com/tutorials/cypress.html).
14+
15+
If there is a difference in visual output, Applitools catches it and fails the test run. The [Applitools Dashboard](https://applitools.com/) then allows you to review the changes, determine the root cause for the change, and maybe approve the visual changes to update the baseline images.
16+
17+
![Applitools difference view](images/applitools-diff.png)
428 KB
Loading

examples/visual-testing-with-applitools/src/Chart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class CustomTheme extends React.Component {
2828
x={425}
2929
y={55}
3030
style={styles.labelTwo}
31-
text={'Dinosaur exports\n $bn'}
31+
text={'Dinosaur 🦕🦖 exports\n $bn'}
3232
/>
3333

3434
<g transform={'translate(0, 40)'}>

0 commit comments

Comments
 (0)