Skip to content

Commit

Permalink
chore: recover E2E (DimensionDev#2284)
Browse files Browse the repository at this point in the history
  • Loading branch information
guanbinrui authored Jan 27, 2021
1 parent 1d524c8 commit f75fa51
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
18 changes: 10 additions & 8 deletions .env/e2e-template
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
# THIS FILE ONLY FOR LISTING ALL AVAILABLE E2E CONFIGURATIONS
# PLEASE CREATE CORRESPONDING e2e-[ENV]
# UNDER CURRENT DIR TO CUSTOMIZE E2E BEHAVIOR FOR DIFFERENT ENV
# UNDER THE CURRENT DIR TO CUSTOMIZE E2E BEHAVIOR FOR DIFFERENT ENV
# DO NOT RUN ANY E2E TEST WITHOUT THESE VARIABLES SET PROPERLY

# Specify network
# Specify network (twitter.com or facebook.com)
E2E_NETWORK_ID=

# Specify the user agent
# Specify the user agent of the puppteer browser
E2E_USER_AGENT=

# Specify the extension id
E2E_EXT_ID=jkoeaghipilijlahjplgbfiocjhldnap

# Specify the extension dir which will be tested
# dist/ if test against development build
# build/ if test against production build
E2E_EXT_DIR=

# Specify the user data dir which helps to prevent frequently
# login thus ban by SNS provider
#
# more about --user-data-dir:
# - https://peter.sh/experiments/chromium-command-line-switches/#user-data-dir
E2E_ALICE_USER_DATA_DIR=
E2E_BOB_USER_DATA_DIR=
E2E_ALICE_USER_DATA_DIR=./pptr-alice
E2E_BOB_USER_DATA_DIR=./pptr-bob

# Specify alice's twitter account
E2E_ALICE_TWITTER_ID=
Expand All @@ -31,23 +33,23 @@ E2E_ALICE_TWITTER_EMAIL=
E2E_ALICE_TWITTER_EMAIL_PASSWORD=
E2E_ALICE_TWITTER_PHONE=

# Specify bob's twitter account
# Specify bob's twitter account (optional)
E2E_BOB_TWITTER_ID=
E2E_BOB_TWITTER_USERNAME=
E2E_BOB_TWITTER_PASSWORD=
E2E_BOB_TWITTER_EMAIL=
E2E_BOB_TWITTER_EMAIL_PASSWORD=
E2E_BOB_TWITTER_PHONE=

# Specify primary facebook account aka. Alice's account
# Specify primary facebook account
E2E_ALICE_FACEBOOK_ID=
E2E_ALICE_FACEBOOK_USERNAME=
E2E_ALICE_FACEBOOK_PASSWORD=
E2E_ALICE_FACEBOOK_EMAIL=
E2E_ALICE_FACEBOOK_EMAIL_PASSWORD=
E2E_ALICE_FACEBOOK_PHONE=

# Specify vice facebook account aka. Bob's account
# Specify vice facebook account (optional)
E2E_BOB_FACEBOOK_ID=
E2E_BOB_FACEBOOK_USERNAME=
E2E_BOB_FACEBOOK_PASSWORD=
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: npm ci

- name: Build
run: npx build E2E
run: npm run build-e2e

- name: Setup E2E
run: |
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
],
"scripts": {
"start": "dev",
"start-e2e": "env target=E2E dev",
"ts": "dev -- echo Starting TypeScript compiler...",
"go": "dev --help",
"start:storybook": "dev -- start-storybook -p 9009 -s public --quiet",
"build": "build",
"build-e2e": "env target=E2E build",
"build-ci": "node --max_old_space_size=4096 -r ts-node/register/transpile-only scripts/ci-build.ts",
"build-storybook": "build -- build-storybook -s public --quiet",
"build-ios": "run-s build:ios:webpack build:ios:ext:prebuilt",
Expand Down

0 comments on commit f75fa51

Please sign in to comment.