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:
parent
f6a35416e5
commit
5dcea199d2
|
|
@ -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('.task-view .columns.details .column button').filter({hasText: 'Add a reminder'}).click()
|
||||||
await page.locator('.datepicker__quick-select-date').filter({hasText: 'Tomorrow'}).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('.reminder-options-popup.is-open')).not.toBeVisible()
|
||||||
await expect(page.locator('.global-notification')).toContainText('Success')
|
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 expect(openPopup.locator('.datepicker__quick-select-date').first()).toBeVisible()
|
||||||
await openPopup.locator('.datepicker__quick-select-date').filter({hasText: 'Tomorrow'}).click()
|
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('.reminder-options-popup.is-open')).not.toBeVisible()
|
||||||
await expect(page.locator('.global-notification')).toContainText('Success')
|
await expect(page.locator('.global-notification')).toContainText('Success')
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue