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' }) })