From 2c8b93656d592bbfb5819fb24af304b088a65c97 Mon Sep 17 00:00:00 2001 From: Danny Brown Date: Thu, 12 Dec 2019 23:43:22 -0500 Subject: [PATCH] ci: fix webgl e2e test failures (only on CI) (#1296) * ci: update executor and browser flag for circleci orbs * ci: browser flag when running percy/ci tests * ci: limit ourselves to the executors defined by the cypress orb for now --- .circleci/config.yml | 8 ++++++++ platform/viewer/package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7737095e3..0b58d997c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -317,6 +317,8 @@ workflows: # E2E: PWA - cypress/run: name: 'E2E: PWA' + executor: cypress/browsers-chrome76 + browser: chrome pre-steps: - run: 'rm -rf ~/.yarn && npm i -g yarn && yarn -v && yarn global add wait-on' # Use yarn latest @@ -339,6 +341,8 @@ workflows: # E2E: script-tag - cypress/run: name: 'E2E: Script Tag' + executor: cypress/browsers-chrome76 + browser: chrome pre-steps: - run: 'rm -rf ~/.yarn && npm i -g yarn && yarn -v && yarn global add wait-on' # Use yarn latest @@ -367,6 +371,8 @@ workflows: # Update hub.docker.org - cypress/run: name: 'Generate Percy Snapshots' + executor: cypress/browsers-chrome76 + browser: chrome pre-steps: - run: 'rm -rf ~/.yarn && npm i -g yarn && yarn -v && yarn global add wait-on' # Use yarn latest @@ -442,6 +448,8 @@ workflows: # and record a Cypress dashboard test run - cypress/run: name: 'Generate Percy Snapshots' + executor: cypress/browsers-chrome76 + browser: chrome pre-steps: - run: 'rm -rf ~/.yarn && npm i -g yarn && yarn -v && yarn global add wait-on' # Use yarn latest diff --git a/platform/viewer/package.json b/platform/viewer/package.json index 8e283a9df..88b79dc98 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", + "test:e2e:ci": "percy exec -- cypress run --record --browser chrome", "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",