Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/renanstn/percy-study

Estudos aleatórios da ferramenta Percy.
https://github.com/renanstn/percy-study

actions ci ci-cd cypress e2e e2e-tests github-actions percy percy-io vue

Last synced: about 1 month ago
JSON representation

Estudos aleatórios da ferramenta Percy.

Awesome Lists containing this project

README

        

# percy-study

[![.github/workflows/percy-integration.yml](https://github.com/renanstn/percy-study/actions/workflows/percy-integration.yml/badge.svg)](https://github.com/renanstn/percy-study/actions/workflows/percy-integration.yml)

> Percy dashboard: https://percy.io/d02c4aef/percy-study

## Steps

- Create account at https://percy.io/
- Create a project
- Integrate following: https://www.browserstack.com/docs/percy/integrate/cypress
- Export token
- In your `cypress/support/e2e.js` file, add: `import '@percy/cypress';`
- Add `percySnapshot()` calls to our tests
- `PERCY_TOKEN= npx percy exec -- cypress run`
- App must be running!
- Cypress must be running!
- Fix app default port on cypress.config.js file
- Always give names to your snapshots!

## Github actions integration

- In your GitHub project’s settings, go to Settings > Secrets and variables > Actions > New repository secret
- Set `PERCY_TOKEN`
- Check `.github/workflows/percy-integration.yml` how I do it