feat: update launch configurations and add outside click handling for date input component

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Marco 2026-04-22 23:58:55 +02:00
commit c0180aab13
7 changed files with 193 additions and 14 deletions

View file

@ -1,10 +1,10 @@
import { expect, test } from '@playwright/test';
import { expect, test, type Page } from '@playwright/test';
test.use({
locale: 'en-US'
});
async function waitForBlazorConnection(page: Parameters<typeof test>[0]['page']) {
async function waitForBlazorConnection(page: Page) {
await page.waitForTimeout(750);
}
@ -23,8 +23,8 @@ test('date picker popup is monday-first and uses european formatting', async ({
const weekdayHeaders = popup.getByTestId('date-picker-weekday');
await expect(weekdayHeaders).toHaveCount(7);
await expect(weekdayHeaders.first()).toHaveText(/^(Mon|Lun)$/);
await expect(weekdayHeaders.first()).toHaveText(/^(Mon|Lun)$/);
await page.getByTestId('calendar-event-start-date-day-2026-04-22').click();
await expect(startDateInput).toHaveValue(/^22\/\d{2}\/\d{4}$/);
});