aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci/config.yml
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-05-12 03:46:53 +0800
committerGitHub <noreply@github.com>2018-05-12 03:46:53 +0800
commit76ab5c04fae20dc0fd2798ad8a336a0364032aff (patch)
tree59ae2bcde6349b735a0ae542a9207a06c48ab2b9 /.circleci/config.yml
parentbfc19e403b6b1612d60a9e191e250e5a794df4cf (diff)
parent3632ea29cc0a21448d904d985ae70ee0c13484a4 (diff)
downloadtangerine-wallet-browser-76ab5c04fae20dc0fd2798ad8a336a0364032aff.tar
tangerine-wallet-browser-76ab5c04fae20dc0fd2798ad8a336a0364032aff.tar.gz
tangerine-wallet-browser-76ab5c04fae20dc0fd2798ad8a336a0364032aff.tar.bz2
tangerine-wallet-browser-76ab5c04fae20dc0fd2798ad8a336a0364032aff.tar.lz
tangerine-wallet-browser-76ab5c04fae20dc0fd2798ad8a336a0364032aff.tar.xz
tangerine-wallet-browser-76ab5c04fae20dc0fd2798ad8a336a0364032aff.tar.zst
tangerine-wallet-browser-76ab5c04fae20dc0fd2798ad8a336a0364032aff.zip
Merge pull request #4226 from MetaMask/e2e-tests
E2E tests
Diffstat (limited to '.circleci/config.yml')
-rw-r--r--.circleci/config.yml42
1 files changed, 38 insertions, 4 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 88a611af3..939df8be5 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -18,10 +18,15 @@ workflows:
- test-deps:
requires:
- prep-deps-npm
- - test-e2e:
+ - test-e2e-chrome:
requires:
- prep-deps-npm
- prep-build
+ - test-e2e-firefox:
+ requires:
+ - prep-deps-npm
+ - prep-deps-firefox
+ - prep-build
- test-unit:
requires:
- prep-deps-npm
@@ -48,7 +53,8 @@ workflows:
- test-lint
- test-deps
- test-unit
- - test-e2e
+ - test-e2e-chrome
+ - test-e2e-firefox
- test-integration-mascara-chrome
- test-integration-mascara-firefox
- test-integration-flat-chrome
@@ -160,7 +166,7 @@ jobs:
name: Test
command: npx nsp check
- test-e2e:
+ test-e2e-chrome:
docker:
- image: circleci/node:8-browsers
steps:
@@ -171,7 +177,34 @@ jobs:
key: build-cache-{{ .Revision }}
- run:
name: Test
- command: npm run test:e2e
+ command: npm run test:e2e:chrome
+ - store_artifacts:
+ path: test-artifacts
+ destination: test-artifacts
+
+ test-e2e-firefox:
+ environment:
+ browsers: '["Firefox"]'
+ docker:
+ - image: circleci/node:8-browsers
+ steps:
+ - checkout
+ - restore_cache:
+ key: dependency-cache-firefox-{{ .Revision }}
+ - run:
+ name: Install firefox
+ command: >
+ sudo rm -r /opt/firefox
+ && sudo mv firefox /opt/firefox58
+ && sudo mv /usr/bin/firefox /usr/bin/firefox-old
+ && sudo ln -s /opt/firefox58/firefox /usr/bin/firefox
+ - restore_cache:
+ key: dependency-cache-{{ .Revision }}
+ - restore_cache:
+ key: build-cache-{{ .Revision }}
+ - run:
+ name: test:e2e:firefox
+ command: npm run test:e2e:firefox
- store_artifacts:
path: test-artifacts
destination: test-artifacts
@@ -335,3 +368,4 @@ jobs:
- run:
name: All Tests Passed
command: echo 'weew - everything passed!'
+ \ No newline at end of file