Skip to content

Commit 16b4f80

Browse files
committed
test(e2e): global-setup: update URLs and improve banner handling logic
- Add new documentation URL (`/docs/multiplatform/`) to key URL iterations. - Update banner dismissal log to differentiate between present and absent cases.
1 parent 66f86c6 commit 16b4f80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/global-setup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function closeProductionElements(baseURL: string, storageStatePath: string
3636
console.log('[Global Setup] Cookie banner not found - continuing');
3737
}
3838

39-
const urls = [baseURL, `${baseURL}/docs/`, `${baseURL}/api/core/`];
39+
const urls = [baseURL, `${baseURL}/docs/`, `${baseURL}/docs/multiplatform/`,`${baseURL}/api/core/`];
4040

4141
for (const url of urls) {
4242
await page.goto(url, { waitUntil: 'domcontentloaded' });
@@ -47,7 +47,7 @@ async function closeProductionElements(baseURL: string, storageStatePath: string
4747
console.log(`[Global Setup] Closing "purple" banner - ${url}`);
4848
await page.waitForSelector('#optly-banner_close', { state: 'hidden' });
4949
} catch (error) {
50-
console.log(`[Global Setup] Closing "purple" banner - continuing - ${url}`);
50+
console.log(`[Global Setup] No "purple" banner - ${url}`);
5151
}
5252
}
5353

0 commit comments

Comments
 (0)