mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-22 18:30:09 +00:00
fix(e2e): use correct selector for confirm button in task-crud test
The confirm button has type="button" with e2e="confirmBtn" attribute, not type="submit". Updated selector to match the actual button.
This commit is contained in:
parent
723896e9bc
commit
ca98d2c936
1 changed files with 3 additions and 3 deletions
|
|
@ -89,9 +89,9 @@ test.describe('Task CRUD Operations', () => {
|
|||
await page.locator('.mat-mdc-menu-item').filter({ hasText: 'Delete' }).click();
|
||||
|
||||
// Handle confirmation dialog if present
|
||||
const dialog = page.locator('dialog-confirm');
|
||||
if (await dialog.isVisible()) {
|
||||
await dialog.locator('button[type=submit]').click();
|
||||
const confirmBtn = page.locator('[e2e="confirmBtn"]');
|
||||
if (await confirmBtn.isVisible()) {
|
||||
await confirmBtn.click();
|
||||
}
|
||||
|
||||
// Verify task is deleted
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue