mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
Update E2E Config.ts to use E2E_TEST_STATUS_PAGE_URL instead of E2E_TEST_REGISTERED_USER_PASSWORD
This commit is contained in:
parent
d51e818d10
commit
1be827741e
1
.github/workflows/test.e2e.yaml
vendored
1
.github/workflows/test.e2e.yaml
vendored
@ -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
|
||||
|
@ -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;
|
||||
|
5
Tests/Scripts/enable-billing-env-var.sh
Normal file
5
Tests/Scripts/enable-billing-env-var.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user