Files
ridebus-pwa/e2e/fixtures.ts
Zakhar Timoshenko 1492f179eb feat: add new components for departures, discovery, and navigation
- Implemented SCSS styles for compact board in departures.
- Created styles for feature discovery modal and its elements.
- Added navigation styles for desktop and mobile views.
- Developed FeatureDiscovery component with guided steps for user onboarding.
- Introduced freshness utility to manage data freshness based on timestamps.
- Added tests for freshness utility to ensure correct behavior across various scenarios.
2026-10-07 21:51:05 +03:00

15 lines
521 B
TypeScript

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';