import { test as base } from '@playwright/test'; // Feature discovery has separate first-visit tests. Other tests use a returning // visitor so a first-run overlay does not hide the interaction being verified. export const test = base.extend({ page: async ({ page }, use) => { await page.addInitScript(() => { try { localStorage.setItem('ridebus:discovery:v1', 'done'); } catch {} }); await use(page); }, }); export { expect } from '@playwright/test'; export type { Page } from '@playwright/test';