diff options
Diffstat (limited to 'scripts/e2e')
-rwxr-xr-x | scripts/e2e/browserstack.sh | 6 | ||||
-rwxr-xr-x | scripts/e2e/local.sh | 14 |
2 files changed, 3 insertions, 17 deletions
diff --git a/scripts/e2e/browserstack.sh b/scripts/e2e/browserstack.sh index fb125ea23..ad6268d42 100755 --- a/scripts/e2e/browserstack.sh +++ b/scripts/e2e/browserstack.sh | |||
@@ -2,8 +2,4 @@ | |||
2 | 2 | ||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | npm run clean:server:test | 5 | cd client/e2e && ../node_modules/.bin/wdio run ./wdio.browserstack.conf.ts |
6 | |||
7 | npm run concurrently -- -k -s first \ | ||
8 | "cd client/e2e && ../node_modules/.bin/wdio run ./wdio.browserstack.conf.ts" \ | ||
9 | "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"rates_limit\": { \"api\": { \"max\": 5000 }, \"login\": { \"max\": 5000 } }, \"log\": { \"level\": \"warn\" }, \"signup\": { \"enabled\": false } }' node dist/server" | ||
diff --git a/scripts/e2e/local.sh b/scripts/e2e/local.sh index fe8b7f559..0e0368c52 100755 --- a/scripts/e2e/local.sh +++ b/scripts/e2e/local.sh | |||
@@ -2,16 +2,6 @@ | |||
2 | 2 | ||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | npm run clean:server:test | 5 | cd client/e2e |
6 | 6 | ||
7 | config="{" | 7 | ../node_modules/.bin/wdio run ./wdio.local.conf.ts |
8 | config+=" \"rates_limit\": { \"api\": { \"max\": 5000 }, \"login\": { \"max\": 5000 } }" | ||
9 | config+=", \"log\": { \"level\": \"warn\" }" | ||
10 | config+=", \"signup\": { \"enabled\": false }" | ||
11 | config+=", \"transcoding\": { \"enabled\": false }" | ||
12 | config+="}" | ||
13 | |||
14 | npm run concurrently -- -k -s first \ | ||
15 | "cd client/e2e && ../node_modules/.bin/wdio run ./wdio.local.conf.ts" \ | ||
16 | "NODE_ENV=test NODE_CONFIG='$config' NODE_APP_INSTANCE=1 node dist/server" \ | ||
17 | "NODE_ENV=test NODE_CONFIG='$config' NODE_APP_INSTANCE=2 node dist/server" | ||