This repository was archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 197
Blocktack Browser test refactored in Serenity #1955
Open
timstackblock
wants to merge
69
commits into
master
Choose a base branch
from
testSerenity
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
3e65999
new test
48a7081
Update README.md
timstackblock 256e070
Update config.yml
timstackblock 5d678d2
update config.yml
timstackblock 0bf99a6
Update package.json
timstackblock 66c3ff4
Update browserstack-environments.js
timstackblock a77e3b2
Rename config.yml to old_config.yml
timstackblock a8c8766
Create config.yml
timstackblock 001527f
Update config.yml
timstackblock e12bc45
Update config.yml
timstackblock 4773276
Rename config.yml to 2config.yml
timstackblock a693cbd
Rename old_config.yml to config.yml
timstackblock 0cfd3ee
Update config.yml
timstackblock e63d005
Update features
timstackblock 0e22b3c
Delete 2config.yml
timstackblock f0c4335
Update accountCreation.steps.ts
timstackblock a1e2b7f
Update blockstack.feature
timstackblock 4ffd287
Update conf.js
timstackblock 5956452
update test
timstackblock 8174b8b
testUpdate
timstackblock 221bffc
modify test
timstackblock 687ebd6
Delete blockstack.feature
timstackblock 191c040
Delete world.ts
timstackblock 7f76625
Delete sign.steps.ts
timstackblock 185d3a5
Delete recoveraccount.steps.ts
timstackblock cb586e7
Delete magic.steps.ts
timstackblock 9b6a343
Delete accountCreation.steps.ts
timstackblock 62e91f6
Delete server.js
timstackblock b5a04eb
Delete index.html
timstackblock f8d7da7
Delete icon-192x192.png
timstackblock 822a631
Delete conf.js
timstackblock 018a906
Delete package-lock.json
timstackblock 38c6edf
Delete protractor.conf.js
timstackblock e4e0774
Delete package.json
timstackblock 400dcc5
modifytest
timstackblock 1913fda
replace package.json
timstackblock 5e1a4b4
test update
timstackblock a33e394
test update
timstackblock c9c8bd2
Rename config.yml to oldConfig.yml
timstackblock 2e4082b
new config file
timstackblock e601ca0
Update config.yml
timstackblock d97be6d
Update config.yml
timstackblock 98b11ae
Update config.yml
timstackblock 15584aa
Update config.yml
timstackblock 6bad3cc
update test
timstackblock c3b4ee1
Update package.json
timstackblock 7798686
Update package.json
timstackblock 0dd3e9a
update jsonlock
timstackblock f61143d
Update config.yml
timstackblock f02e625
Update config.yml
timstackblock b787e32
Update browserstack-environments.js
timstackblock ff5f93c
Update config.yml
timstackblock b1bd1fc
upodate test remove iphone 8
timstackblock 6a4639f
Update config.yml
timstackblock 48220bb
Update accountCreation.steps.ts
timstackblock 720da1a
Update config.yml
timstackblock 6bf05e3
Update package.json
timstackblock 3a4c391
Update conf.js
timstackblock be7fe3f
update features
timstackblock 99e75c5
update utils
timstackblock 2434c35
Delete oldConfig.yml
timstackblock d51518a
Remove data files
358f6d4
Update config.yml
timstackblock cdc0fc0
Update config.yml
timstackblock 892dda0
Update config.yml
timstackblock da8a398
Update config.yml
timstackblock a2a5494
Update config.yml
timstackblock 7625ae1
Update config.yml
timstackblock b832803
Update accountCreation.steps.ts
timstackblock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.