375bcfb0fa
Copies Playwright e2e tests (58 specs, 300+ tests) designed for cross-app testing. Adapts API mocks to match real Aeroflot dictionary format (title objects with multilingual keys), adds board/schedule/days endpoint mocks, and provides Angular-specific Playwright config on port 4203.
16 lines
508 B
TypeScript
16 lines
508 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
import { todayStr } from '../../src/lib/date-utils';
|
|
|
|
const today = todayStr();
|
|
const dateParam = today.replace(/-/g, '');
|
|
|
|
test.describe('Landing page visual regression', () => {
|
|
test('matches landing page screenshot', async ({ page }) => {
|
|
await page.goto(`/ru-ru/onlineboard/departure/MOW-${dateParam}`);
|
|
await page.waitForLoadState('networkidle');
|
|
await expect(page).toHaveScreenshot('landing.png', {
|
|
fullPage: true,
|
|
});
|
|
});
|
|
});
|