This repo contains the visual tests run against the Ansible Automation Platform(AAP).
- Create a contract for visual changes between patternfly, platformexp, and the AAP applications
- Create a contract for ouia attributes which impact AAP applications
- Give working examples of Visual Testing and Cypress best practices for Ansible and Clouddot engineers
- Share common tooling and versioning for Github Actions, Cypress, and Applitools
- Provide a reliable source of Visual Changes which impact Marketing and Support stakeholders
1. npm install
1. Set CYPRESS_USERNAME and CYPRESS_PASSWORD env variables to your cloud.redhat.com account credentials
2. Set APPLITOOLS_API_KEY env variable
3. npm run cy:open
OR
3. npm run cy:open:prod-beta to run against prod beta
1. Click Github Actions Tab
2. `tests`
3. Execute Workflow
Alternatively, the tests will run nightly or on PRs automatically
1. Organize staging, prod, beta with configs https://github.com/unlikelyzero/aap-visual/blob/main/cypress/config/prod-beta.json
2. Select OUIA attributes first https://github.com/unlikelyzero/aap-visual/blob/main/cypress/support/index.js
3. ...