Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Blocktack Browser test refactored in Serenity #1955

Open
wants to merge 69 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
3e65999
new test
Sep 8, 2019
48a7081
Update README.md
timstackblock Sep 15, 2019
256e070
Update config.yml
timstackblock Sep 20, 2019
5d678d2
update config.yml
timstackblock Sep 22, 2019
0bf99a6
Update package.json
timstackblock Sep 22, 2019
66c3ff4
Update browserstack-environments.js
timstackblock Sep 22, 2019
a77e3b2
Rename config.yml to old_config.yml
timstackblock Sep 25, 2019
a8c8766
Create config.yml
timstackblock Sep 25, 2019
001527f
Update config.yml
timstackblock Sep 25, 2019
e12bc45
Update config.yml
timstackblock Sep 25, 2019
4773276
Rename config.yml to 2config.yml
timstackblock Sep 25, 2019
a693cbd
Rename old_config.yml to config.yml
timstackblock Sep 25, 2019
0cfd3ee
Update config.yml
timstackblock Sep 25, 2019
e63d005
Update features
timstackblock Sep 29, 2019
0e22b3c
Delete 2config.yml
timstackblock Sep 29, 2019
f0c4335
Update accountCreation.steps.ts
timstackblock Sep 29, 2019
a1e2b7f
Update blockstack.feature
timstackblock Sep 29, 2019
4ffd287
Update conf.js
timstackblock Sep 29, 2019
5956452
update test
timstackblock Sep 29, 2019
8174b8b
testUpdate
timstackblock Sep 30, 2019
221bffc
modify test
timstackblock Sep 30, 2019
687ebd6
Delete blockstack.feature
timstackblock Sep 30, 2019
191c040
Delete world.ts
timstackblock Sep 30, 2019
7f76625
Delete sign.steps.ts
timstackblock Sep 30, 2019
185d3a5
Delete recoveraccount.steps.ts
timstackblock Sep 30, 2019
cb586e7
Delete magic.steps.ts
timstackblock Sep 30, 2019
9b6a343
Delete accountCreation.steps.ts
timstackblock Sep 30, 2019
62e91f6
Delete server.js
timstackblock Sep 30, 2019
b5a04eb
Delete index.html
timstackblock Sep 30, 2019
f8d7da7
Delete icon-192x192.png
timstackblock Sep 30, 2019
822a631
Delete conf.js
timstackblock Sep 30, 2019
018a906
Delete package-lock.json
timstackblock Sep 30, 2019
38c6edf
Delete protractor.conf.js
timstackblock Sep 30, 2019
e4e0774
Delete package.json
timstackblock Sep 30, 2019
400dcc5
modifytest
timstackblock Sep 30, 2019
1913fda
replace package.json
timstackblock Sep 30, 2019
5e1a4b4
test update
timstackblock Oct 3, 2019
a33e394
test update
timstackblock Oct 3, 2019
c9c8bd2
Rename config.yml to oldConfig.yml
timstackblock Oct 3, 2019
2e4082b
new config file
timstackblock Oct 3, 2019
e601ca0
Update config.yml
timstackblock Oct 3, 2019
d97be6d
Update config.yml
timstackblock Oct 11, 2019
98b11ae
Update config.yml
timstackblock Oct 13, 2019
15584aa
Update config.yml
timstackblock Oct 13, 2019
6bad3cc
update test
timstackblock Oct 13, 2019
c3b4ee1
Update package.json
timstackblock Oct 13, 2019
7798686
Update package.json
timstackblock Oct 13, 2019
0dd3e9a
update jsonlock
timstackblock Oct 13, 2019
f61143d
Update config.yml
timstackblock Oct 13, 2019
f02e625
Update config.yml
timstackblock Oct 13, 2019
b787e32
Update browserstack-environments.js
timstackblock Oct 13, 2019
ff5f93c
Update config.yml
timstackblock Oct 13, 2019
b1bd1fc
upodate test remove iphone 8
timstackblock Oct 13, 2019
6a4639f
Update config.yml
timstackblock Oct 14, 2019
48220bb
Update accountCreation.steps.ts
timstackblock Oct 14, 2019
720da1a
Update config.yml
timstackblock Jan 6, 2020
6bf05e3
Update package.json
timstackblock Jan 6, 2020
3a4c391
Update conf.js
timstackblock Jan 6, 2020
be7fe3f
update features
timstackblock Jan 6, 2020
99e75c5
update utils
timstackblock Jan 6, 2020
2434c35
Delete oldConfig.yml
timstackblock Jan 9, 2020
d51518a
Remove data files
Jan 9, 2020
358f6d4
Update config.yml
timstackblock Jan 10, 2020
cdc0fc0
Update config.yml
timstackblock Jan 10, 2020
892dda0
Update config.yml
timstackblock Jan 10, 2020
da8a398
Update config.yml
timstackblock Jan 10, 2020
a2a5494
Update config.yml
timstackblock Jan 10, 2020
7625ae1
Update config.yml
timstackblock Jan 13, 2020
b832803
Update accountCreation.steps.ts
timstackblock Jan 14, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 91 additions & 35 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,71 +7,127 @@ jobs:
steps:
- checkout
- run:
name: Install Dependencies
command: npm install
# test
- run: npm run test
# build
- run: npm run prod-webapp
name: Installing dependencies
command: pwd
timstackblock marked this conversation as resolved.
Show resolved Hide resolved
test-e2e-login:
docker:
- image: circleci/node:10.15.1-browsers
working_directory: ~/repo
steps:
- checkout
- run:
name: Repo Check 1
name: Installing dependencies
command: npm install && cd ./test-e2e && npm install
- run:
name: Addittional step
command: pwd
- run:
name: Running Tests
command: |
export NODE_OPTIONS=--max_old_space_size=4096
export CUCUMBER_TAG='@login'
export RANDOM_STRING='testing1'
npm run test-e2e:browserstack
- run:
name: Save test results
command: |
if [ "$CIRCLE_REPOSITORY_URL" == "[email protected]:blockstack/blockstack-browser.git" ]; then
export TEST_E2E_GREP=login-to-hello-blockstack-app
npm install && npm run test-e2e:browserstack
else
export TEST_E2E_GREP=login-to-hello-blockstack-app
npm install && npm run test-e2e:localBuild
fi
tar -czvf test-e2e-login.tar.gz test-e2e/target/site/serenity
tar -czvf logs.tar.gz /home/circleci/.npm/_logs/
mv logs.tar.gz test-e2e/target/logs.tar.gz
mv test-e2e-login.tar.gz test-e2e/target/test-e2e-login.tar.gz
when: on_fail
- store_artifacts:
path: /tmp/test-errors
path: test-e2e/target

test-e2e-account-creation:
docker:
- image: circleci/node:10.15.1-browsers
working_directory: ~/repo
steps:
- checkout
- run:
name: Repo Check 2
name: Installing dependencies
command: npm install && cd ./test-e2e && npm install

- run:
name: Running Tests
command: |
if [ "$CIRCLE_REPOSITORY_URL" == "[email protected]:blockstack/blockstack-browser.git" ]; then
export TEST_E2E_GREP=account-creation
npm install && npm run test-e2e:browserstack
else
export TEST_E2E_GREP=account-creation
npm install && npm run test-e2e:localBuild
fi
export NODE_OPTIONS=--max_old_space_size=4096
export CUCUMBER_TAG='@accountCreation'
export RANDOM_STRING='testing2'
npm run test-e2e:browserstack
- run:
name: Save test results
command: |
tar -czvf test-e2e-account-creation.tar.gz test-e2e/target/site/serenity
tar -czvf logs.tar.gz /home/circleci/.npm/_logs/
mv logs.tar.gz test-e2e/target/logs.tar.gz
mv test-e2e-account-creation.tar.gz test-e2e/target/test-e2e-account-creation.tar.gz
when: on_fail
- store_artifacts:
path: /tmp/test-errors
test-e2e-account-recovery:
path: test-e2e/target

test-e2e-account-recovery-via-magic-recovery-code:
docker:
- image: circleci/node:10.15.1-browsers
working_directory: ~/repo
steps:
- checkout
- run:
name: Repo Check 3
name: Installing dependencies
command: npm install && cd ./test-e2e && npm install

- run:
name: Running Tests
command: |
export NODE_OPTIONS=--max_old_space_size=4096
export CUCUMBER_TAG='@magicRecovery'
export RANDOM_STRING='testing3'
npm run test-e2e:browserstack
- run:
name: Save test results
command: |
tar -czvf test-e2e-account-recovery-via-magic-recovery-code.tar.gz test-e2e/target/site/serenity
tar -czvf logs.tar.gz /home/circleci/.npm/_logs/
mv logs.tar.gz test-e2e/target/logs.tar.gz
mv test-e2e-account-recovery-via-magic-recovery-code.tar.gz test-e2e/target/test-e2e-account-recovery-via-magic-recovery-code.tar.gz
when: on_fail
- store_artifacts:
path: test-e2e/target

test-e2e-account-recovery-via-secret-key:
docker:
- image: circleci/node:10.15.1-browsers
working_directory: ~/repo
steps:
- checkout
- run:
name: Installing dependencies
command: npm install && cd ./test-e2e && npm install

- run:
name: Running Tests
command: |
export NODE_OPTIONS=--max_old_space_size=4096
export CUCUMBER_TAG='@secretRecovery'
export RANDOM_STRING='testing4'
npm run test-e2e:browserstack
- run:
name: Save test results
command: |
if [ "$CIRCLE_REPOSITORY_URL" == "[email protected]:tim/blockstack-browser.git" ]; then
export TEST_E2E_GREP=account-recovery
npm install && npm run test-e2e:browserstack
else
export TEST_E2E_GREP=account-recovery
npm install && npm run test-e2e:localBuild
fi
tar -czvf test-e2e-account-recovery-via-secret-key.tar.gz test-e2e/target/site/serenity
tar -czvf logs.tar.gz /home/circleci/.npm/_logs/
mv logs.tar.gz test-e2e/target/logs.tar.gz
mv test-e2e-account-recovery-via-secret-key.tar.gz test-e2e/target/test-e2e-account-recovery-via-secret-key.tar.gz
when: on_fail
- store_artifacts:
path: /tmp/test-errors
path: test-e2e/target
workflows:
version: 2
build_and_test_e2e_local_or_remote-e2e:
jobs:
- build
- test-e2e-login
- test-e2e-account-creation
- test-e2e-account-recovery
- test-e2e-account-recovery-via-magic-recovery-code
- test-e2e-account-recovery-via-secret-key
Loading