From bcd082f7f033873552ee6542f907338f2cc8832d Mon Sep 17 00:00:00 2001 From: ajaxzheng <894103554@qq.com> Date: Tue, 3 Dec 2024 15:43:55 +0800 Subject: [PATCH] test(e2e): fix action-menu error e2e test --- examples/sites/demos/pc/app/action-menu/card-mode.spec.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/sites/demos/pc/app/action-menu/card-mode.spec.ts b/examples/sites/demos/pc/app/action-menu/card-mode.spec.ts index 3055a84e31..7684b128a0 100644 --- a/examples/sites/demos/pc/app/action-menu/card-mode.spec.ts +++ b/examples/sites/demos/pc/app/action-menu/card-mode.spec.ts @@ -11,7 +11,5 @@ test('基本用法', async ({ page }) => { await expect(visibleItem).toHaveCount(4) await expect(moreItem).not.toHaveText(/更多/) - // 三点图标 - const SvgPathReg = /^M2\.3 7\.78v.+219-1\.17Z$/ - await expect(moreItem.locator('.tiny-svg path').first()).toHaveAttribute('d', SvgPathReg) + await expect(moreItem.locator('.tiny-dropdown__suffix-inner .tiny-svg')).toBeVisible() })