-
- Downloads
upgrade to @percy/cypress 3.x (#17485)
* upgrade to @percy/cypress 3.x @percy/cypress 2.x uses deprecated @percy/agent which includes an old version of puppeteer. The old version of puppeteer causes `yarn` command to fail on M1 macOS environment. Upgrade to @percy/cypress 3.x removes the dependency and thus solves the issue. The upgrade was done by running `npx @percy/migrate`. * remove percy healthcheck task This no longer exists in 3.x, see https://github.com/percy/percy-cypress/blob/master/README.md#upgrading * remove deprecated percy/exec-action and moved `percy exec` to the correct command * run 'yarn install' before running percy
Showing
- .github/workflows/percy-issue-comment.yml 2 additions, 3 deletions.github/workflows/percy-issue-comment.yml
- .github/workflows/percy.yml 2 additions, 3 deletions.github/workflows/percy.yml
- .percy.yml 5 additions, 2 deletions.percy.yml
- frontend/test/__support__/e2e/cypress-plugins.js 0 additions, 5 deletionsfrontend/test/__support__/e2e/cypress-plugins.js
- package.json 3 additions, 3 deletionspackage.json
- yarn.lock 57 additions, 610 deletionsyarn.lock
... | ... | @@ -107,7 +107,7 @@ |
"@cypress/skip-test": "^2.6.0", | ||
"@cypress/webpack-preprocessor": "^5.9.1", | ||
"@percy/cli": "^1.0.0-beta.48", | ||
"@percy/cypress": "^2.3.4", | ||
"@percy/cypress": "^3.0.0", | ||
"@testing-library/cypress": "^5.0.2", | ||
"@testing-library/dom": "^7.29.0", | ||
"@testing-library/jest-dom": "^4.0.0", | ||
... | ... | @@ -205,8 +205,8 @@ |
"test-cypress-open": "./bin/build-for-test && yarn test-cypress-no-build --open", | ||
"test-cypress-open-no-backend": "E2E_HOST='http://localhost:3000' yarn test-cypress-no-build --open", | ||
"test-cypress-no-build": "yarn && babel-node ./frontend/test/__runner__/run_cypress_tests.js", | ||
"test-visual": "percy exec -- yarn build && ./bin/build-for-test && yarn test-visual-no-build", | ||
"test-visual-no-build": "yarn test-cypress-no-build --spec \"./frontend/test/metabase-visual/**/*.cy.spec.js\"", | ||
"test-visual": "yarn build && ./bin/build-for-test && yarn test-visual-no-build", | ||
"test-visual-no-build": "percy exec -- yarn test-cypress-no-build --spec \"./frontend/test/metabase-visual/**/*.cy.spec.js\"", | ||
"test-visual-open": "percy exec -- yarn test-cypress-open --spec \"./frontend/test/metabase-visual/**/*.cy.spec.js\"", | ||
"prepare": "husky install" | ||
}, | ||
... | ... |
This diff is collapsed.
Please register or sign in to comment