diff --git a/.circleci/config.yml b/.circleci/config.yml index 116e599ab..aa8d46a33 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -382,8 +382,7 @@ workflows: working_directory: platform/viewer build: npx cross-env QUICK_BUILD=true yarn run build # start server --> verify running --> percy + chrome + cypress - start: yarn run test:e2e:dist - spec: 'cypress/integration/visual-regression/**/*' + command: yarn run test:e2e:dist cache-key: 'yarn-packages-{{ checksum "yarn.lock" }}' no-workspace: true # Don't persist workspace post-steps: diff --git a/platform/viewer/cypress.json b/platform/viewer/cypress.json index a6bcfd48d..1bc15965b 100644 --- a/platform/viewer/cypress.json +++ b/platform/viewer/cypress.json @@ -5,5 +5,6 @@ "defaultCommandTimeout": 10000, "requestTimeout": 10000, "responseTimeout": 10000, - "projectId": "4oe38f" + "projectId": "4oe38f", + "video": false } diff --git a/platform/viewer/package.json b/platform/viewer/package.json index 2d3e2d84f..83c31b5bf 100644 --- a/platform/viewer/package.json +++ b/platform/viewer/package.json @@ -27,7 +27,7 @@ "dev:viewer": "yarn run dev", "start": "yarn run dev", "test:e2e": "cypress open", - "test:e2e:ci": "percy exec -- cypress run --record --browser chrome", + "test:e2e:ci": "percy exec -- cypress run --config video=false --record --browser chrome --spec 'cypress/integration/visual-regression/**/*'", "test:e2e:dist": "start-server-and-test test:e2e:serve http://localhost:3000 test:e2e:ci", "test:e2e:serve": "serve -n -l 3000 -s dist", "test:unit": "jest --watchAll",