From c923474767d8164c8aff383f998eebae3393d2c5 Mon Sep 17 00:00:00 2001 From: ajaxzheng <894103554@qq.com> Date: Tue, 3 Dec 2024 17:09:03 +0800 Subject: [PATCH] test(e2e): fix action-menu error e2e test (#2600) --- 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() })