From 12d6b873cd4c5eb8c4fd298885e0c7fa6deb3756 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 2 Sep 2021 08:57:59 +0200 Subject: Improve e2e workflow and add doc --- scripts/e2e/browserstack.sh | 9 +++++++++ scripts/e2e/index.sh | 14 -------------- 2 files changed, 9 insertions(+), 14 deletions(-) create mode 100755 scripts/e2e/browserstack.sh delete mode 100755 scripts/e2e/index.sh (limited to 'scripts/e2e') diff --git a/scripts/e2e/browserstack.sh b/scripts/e2e/browserstack.sh new file mode 100755 index 000000000..69a12d14c --- /dev/null +++ b/scripts/e2e/browserstack.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +set -eu + +npm run clean:server:test + +npm run concurrently -- -k -s first \ + "cd client/e2e && ../node_modules/.bin/wdio run ./wdio.browserstack.conf.ts" \ + "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"log\": { \"level\": \"warn\" }, \"signup\": { \"enabled\": false } }' node dist/server" diff --git a/scripts/e2e/index.sh b/scripts/e2e/index.sh deleted file mode 100755 index 49d57f1df..000000000 --- a/scripts/e2e/index.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -set -eu - -npm run clean:server:test - -( - cd client - npm run webpack -- --config webpack/webpack.video-embed.js --mode development -) - -npm run concurrently -- -k -s first \ - "cd client && npm run ng -- e2e --port 3333" \ - "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"log\": { \"level\": \"warn\" }, \"signup\": { \"enabled\": false } }' node dist/server" -- cgit v1.2.3