Skip to content

Commit 024dfd3

Browse files
committed
fix(test): update isDevelopment logic for localhost detection
- Correct `isDevelopment` utility function to properly identify `localhost` as a development environment.
1 parent 219abf2 commit 024dfd3

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 = '/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 = '/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)