From 5dcea199d2baab69a4fe1a50aea446a065bfcf5d Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 9 Feb 2026 19:51:00 +0100 Subject: [PATCH] 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 --- frontend/tests/e2e/task/task.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/tests/e2e/task/task.spec.ts b/frontend/tests/e2e/task/task.spec.ts index 775470701..c3e9ec70e 100644 --- a/frontend/tests/e2e/task/task.spec.ts +++ b/frontend/tests/e2e/task/task.spec.ts @@ -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') })