From f0a6b16185d1c9631e38a61a04639d99935bc0c1 Mon Sep 17 00:00:00 2001 From: cat_shark <1716967236@qq.com> Date: Sat, 4 Jul 2026 17:40:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(e2e)=EF=BC=9A=E5=88=A0=E9=99=A4=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=B5=8B=E8=AF=95=E5=A2=9E=E5=8A=A0=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- e2e/study.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e2e/study.spec.ts b/e2e/study.spec.ts index a2a1bd9..89e8930 100644 --- a/e2e/study.spec.ts +++ b/e2e/study.spec.ts @@ -98,6 +98,10 @@ test.describe('Study page', () => { }); 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 }); });