fix(e2e):删除任务测试增加确认弹窗处理
This commit is contained in:
@@ -98,6 +98,10 @@ test.describe('Study page', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await page.locator('.action-card').locator('button', { hasText: '删除任务' }).click();
|
await page.locator('.action-card').locator('button', { hasText: '删除任务' }).click();
|
||||||
|
// 处理确认弹窗
|
||||||
|
const confirmBtn = page.locator('.el-message-box__btns button:has-text("确定删除")');
|
||||||
|
await confirmBtn.waitFor({ timeout: 3000 });
|
||||||
|
await confirmBtn.click();
|
||||||
await expect(page.locator('.task-list-item')).toHaveCount(1, { timeout: 5000 });
|
await expect(page.locator('.task-list-item')).toHaveCount(1, { timeout: 5000 });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user