From fd614004b047e02863c173df425b9347b5934897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com> Date: Mon, 14 Sep 2026 00:25:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=92=9E=E6=AC=BEe2e):=20=E5=8F=B0?= =?UTF-8?q?=E8=B4=A6=E5=88=86=E9=A1=B5=E6=96=AD=E8=A8=80=E9=99=90=E5=AE=9A?= =?UTF-8?q?=E5=88=B0=E5=8F=B0=E8=B4=A6=E8=A1=A8=E6=A0=BC=E7=B4=A7=E9=82=BB?= =?UTF-8?q?=E5=88=86=E9=A1=B5=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 台账 tab 下页面同时有「店铺上架分布」分页器(设计要求常显)与台账分页器, 全页 .old-pagination 命中 2 个元素触发 strict mode;断言改为 .table-wrap + .old-pagination, 用例意图不变(台账分页可见)。撞款 4 用例全绿,全量 e2e 44 通过(通知面板 1 例失败系并行会话在改 NotificationBell.vue,与本改动无关)。 --- admin-frontend-vue/e2e/dup-console.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin-frontend-vue/e2e/dup-console.spec.ts b/admin-frontend-vue/e2e/dup-console.spec.ts index 198cf94c..8f4028cb 100644 --- a/admin-frontend-vue/e2e/dup-console.spec.ts +++ b/admin-frontend-vue/e2e/dup-console.spec.ts @@ -32,7 +32,9 @@ test('test_dup_console_render_ledger_tab_normal_variant_input', async ({ page }) await expect(page.locator('.dup-head h2')).toHaveText('店铺数据撞款监控') await page.getByRole('button', { name: /全部ASIN台账/ }).click() await expect(page.locator('table.ledger tbody tr').first()).toBeVisible({ timeout: 15000 }) - await expect(page.locator('.old-pagination')).toBeVisible() + // 台账 tab 下页面同时有「店铺上架分布」分页器(常显,见 tests/align-dup-console.test.ts)与台账分页器, + // 全页 .old-pagination 会命中 2 个元素触发 strict mode;限定到台账表格(.table-wrap)紧邻的分页器。 + await expect(page.locator('.table-wrap + .old-pagination')).toBeVisible() expect(errors).toEqual([]) await page.locator('.table-wrap').screenshot({ path: 'test-results/dup-console-admin-ledger.jpg' }) })