Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress Applitools Smoketest #2138

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from
Open

Cypress Applitools Smoketest #2138

wants to merge 9 commits into from

Conversation

blukmays
Copy link

@blukmays blukmays commented Nov 6, 2019

Visual testing is a form of regression test that ensures that screens that were correct have not changed unexpectedly. This visual testing is done by saving screen snapshots at key points called checkpoints. These screenshots are then compared to previously stored baseline images, and any significant differences are reported, ignoring differences that a human couldn't perceive.
Cypress launches a headless Chrome where it runs the tests. Applitool's SDK then takes DOM snapshots w/ styles from that headless Chrome and sends them to Applitool's servers where it renders those results in Chrome and then takes a screenshot of that result and does its intelligent comparisons against the baseline. The baseline is created the first time you run it.
You'll need to create an Applitools account. and export APPLITOOLS_API_KEY=valuehere your API key in your local environment if you run it locally.

To write the first Applitools, Cypress documentation was followed step by step. The smoke test was created by first creating an account with Applitools and gaining an API provided by Applitools. Once Cypress has been installed, there is a Cypress folder with several folders integrated into them, these folders will give a base to creating a test which can be followed in the following tutorials below.
https://www.cypress.io/
https://applitools.com/tutorials/cypress.html

Documentation on Applitools SDK can be found at https://applitools.com/docs/topics/overview/overview-writing-tests-with-eyes-runner.html

@cmwhited
Copy link

Great work @blukmays! @marcosmoura could we get some eyes on this PR?

@cmwhited
Copy link

@blukmays looks like there are some conflicts in the dist folder, which is in the .gitignore. @marcosmoura could we get some eyes on this and a suggestion on how to approach these conflicts that fits with your repo? Thanks!

@cmwhited
Copy link

@marcosmoura pinging again. hoping to get some eyes on this and get it merged. Have you had a chance to take a look?

@cmwhited
Copy link

@marcosmoura pinging again. thanks!

@cmwhited
Copy link

@marqbeniamin I just saw the added labels. how can I assist with the needs more information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants