Skip to content

Commit ba5acba

Browse files
committed
fix(e2e): update baseURL references in landings.spec.ts for consistency with production setup
1 parent bbe1b58 commit ba5acba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/production/landings.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ test.describe.configure({ mode: 'parallel' });
66
test.describe('/lp/ pages list', async () => {
77
test.skip(({ baseURL }) => !isProduction(baseURL), 'for host with reverse-proxy only');
88

9-
test(`Check /lp/multiplatform default redirects`, async ({ page }) => {
10-
const targetUrl = 'https://kotlinlang.org/multiplatform/';
9+
test(`Check /lp/multiplatform default redirects`, async ({ page, baseURL }) => {
10+
const targetUrl = `${baseURL}/multiplatform/`;
1111

1212
await page.goto('/lp/multiplatform');
1313
expect(page.url()).toEqual(targetUrl);
@@ -19,8 +19,8 @@ test.describe('/lp/ pages list', async () => {
1919
expect(page.url()).toEqual(targetUrl);
2020
});
2121

22-
test(`Check /lp/multiplatform case-studies redirect`, async ({ page }) => {
23-
const targetUrl = 'https://kotlinlang.org/case-studies/?type=multiplatform';
22+
test(`Check /lp/multiplatform case-studies redirect`, async ({ page, baseURL }) => {
23+
const targetUrl = `${baseURL}/case-studies/?type=multiplatform`;
2424

2525
await page.goto('/lp/multiplatform/case-studies/');
2626
expect(page.url()).toEqual(targetUrl);

0 commit comments

Comments
 (0)