feat(ui): qualify calendar documents and correspondence workflows
This commit is contained in:
@@ -43,6 +43,7 @@ try {
|
||||
};
|
||||
await page.goto('http://localhost:4338/reminders');
|
||||
const calendar = page.getByRole('region', { name: t('calendarAgendaTitle'), exact: true }); await calendar.getByRole('link', { name: /Electrical engineer/ }).waitFor();
|
||||
await expect(page.getByRole('combobox', { name: new RegExp(`^${t('calendarSelectedMonth')}`) })).toContainText(new Intl.DateTimeFormat(language === 'nb' ? 'nb-NO' : 'en-GB', { month: 'long', year: 'numeric', timeZone: 'UTC' }).format(new Date(`${month}-01T12:00:00Z`)));
|
||||
await expect(page.getByRole('button', { name: t('calendarAgenda'), exact: true })).toHaveAttribute('aria-pressed', 'true');
|
||||
assert.equal(await calendar.getByRole('link').count(), 3); assert.equal(await calendar.locator('time').first().getAttribute('datetime'), events[0].recordedAt); await scan('agenda');
|
||||
await page.getByRole('button', { name: t('calendarMonth'), exact: true }).click();
|
||||
|
||||
Reference in New Issue
Block a user