Update E2E Config.ts to use E2E_TEST_STATUS_PAGE_URL instead of E2E_TEST_REGISTERED_USER_PASSWORD

This commit is contained in:
Simon Larsen 2024-04-27 16:55:22 +01:00
parent d51e818d10
commit 1be827741e
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
3 changed files with 7 additions and 3 deletions

View File

@ -30,6 +30,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: npm run prerun && bash ./Tests/Scripts/enable-billing-env-var.sh
- run: npm run dev
- name: Wait for server to start
run: bash ./Tests/Scripts/status-check.sh http://localhost

View File

@ -23,8 +23,6 @@ export const REGISTERED_USER_PASSWORD: string =
export const IS_BILLING_ENABLED: boolean = env('BILLING_ENABLED') === 'true';
export const STATUS_PAGE_URL: URL | null = env(
'E2E_TEST_STATUS_PAGE_URL'
)
export const STATUS_PAGE_URL: URL | null = env('E2E_TEST_STATUS_PAGE_URL')
? URL.fromString(env('E2E_TEST_STATUS_PAGE_URL'))
: null;

View File

@ -0,0 +1,5 @@
# This script replcaes BILLING_ENABLED in config.env to true
# This is used to enable billing for the tests
# Replace BILLING_ENABLED in config.env to true
sed -i 's/BILLING_ENABLED=false/BILLING_ENABLED=true/g' config.env