From 79d492e1222768a4ec51351bc26a3ad67b110071 Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 8 Oct 2026 08:17:45 +0800 Subject: [PATCH] fix(e2e): follow the antd 6 drawer DOM, .ant-drawer-content is gone --- e2e/flows.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/flows.spec.ts b/e2e/flows.spec.ts index 0bdd26db..a7f9f7b5 100644 --- a/e2e/flows.spec.ts +++ b/e2e/flows.spec.ts @@ -70,7 +70,8 @@ test('点击看板卡片查看详情,并在详情里流转状态(不用拖 await expect(todo.first()).toBeVisible(); const done = await columns.nth(2).locator('.ant-card').count(); await todo.first().click(); - const drawer = page.locator('.ant-drawer-content'); + // antd 6 起 Drawer 内层的 .ant-drawer-content 元素被 .ant-drawer-section(role=dialog)取代 + const drawer = page.locator('.ant-drawer-section'); await expect(drawer).toContainText('处理进度'); await drawer.locator('.ant-segmented-item').nth(2).click(); await expect(page.locator('.ant-message')).toContainText('已完成');