fix(test): update existing reminder tests to click Confirm after date selection

The DatepickerInline quick-select buttons (Tomorrow, etc.) inside the
reminder popup no longer auto-save. Update existing tests to click
Confirm after selecting a date.

Refs #2208
This commit is contained in:
kolaente
2026-02-09 19:51:00 +01:00
parent f6a35416e5
commit 5dcea199d2

View File

@@ -750,6 +750,9 @@ test.describe('Task', () => {
await page.locator('.task-view .columns.details .column button').filter({hasText: 'Add a reminder'}).click()
await page.locator('.datepicker__quick-select-date').filter({hasText: 'Tomorrow'}).click()
const openPopup = page.locator('.reminder-options-popup.is-open')
await openPopup.locator('button').filter({hasText: 'Confirm'}).click()
await expect(page.locator('.reminder-options-popup.is-open')).not.toBeVisible()
await expect(page.locator('.global-notification')).toContainText('Success')
})
@@ -840,6 +843,8 @@ test.describe('Task', () => {
await expect(openPopup.locator('.datepicker__quick-select-date').first()).toBeVisible()
await openPopup.locator('.datepicker__quick-select-date').filter({hasText: 'Tomorrow'}).click()
await openPopup.locator('button').filter({hasText: 'Confirm'}).click()
await expect(page.locator('.reminder-options-popup.is-open')).not.toBeVisible()
await expect(page.locator('.global-notification')).toContainText('Success')
})