mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-11 17:48:44 -05:00
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:
@@ -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')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user