Skip to content

Commit

Permalink
e2e tests: Fix page URL generation
Browse files Browse the repository at this point in the history
  • Loading branch information
juyrjola committed Oct 18, 2024
1 parent f25958a commit 8d25c6e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions e2e-tests/common/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,16 +316,16 @@ export function getIdentifiersToTest(): string[] {
.filter((s) => s);
}

export function getPageBaseUrlToTest(planId: string): string {
export function getPageBaseUrlToTest(instanceId: string): string {
let baseUrl =
process.env.TEST_PAGE_BASE_URL ||
`https://{planId}.watch.staging.kausal.tech`;
baseUrl = baseUrl.replace('{planId}', planId);
`https://{instanceId}.watch.staging.kausal.tech`;
baseUrl = baseUrl.replace('{instanceId}', instanceId);
return baseUrl;
}

export function displayConfiguration() {
console.log('Base URL: ', process.env.TEST_);
console.log('URL for Sunnydale: ', getPageBaseUrlToTest('sunnydale'));
console.log('Base URL: ', process.env.TEST_PAGE_BASE_URL);
console.log(' URL for Sunnydale: ', getPageBaseUrlToTest('sunnydale'));
console.log('API base URL: ', API_BASE);
}

0 comments on commit 8d25c6e

Please sign in to comment.