fix(e2e): 成片库页面验证改用getByPlaceholder替代heading,避免图标导致accessible name计算问题
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Failing after 73h2m14s
CI/CD Pipeline / Deploy Staging (push) Failing after 73h3m49s
CI/CD Pipeline / Frontend Lint (push) Failing after 73h4m20s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 73h5m6s

This commit is contained in:
DevOps Bot
2026-07-06 11:49:22 +08:00
parent c6df51b4e3
commit 60e8318661
+4 -2
View File
@@ -229,9 +229,11 @@ test.describe("Core generation flow", () => {
// If we see progress or result, great; if not, flow still reached the end
// which is sufficient for an E2E smoke test
// Verify product library page loads
// Verify product library page loads (smoke: just verify page renders)
await page.goto("/app/products");
await expect(page.getByRole("heading", { name: /成片库/ })).toBeVisible({
await expect(page).toHaveURL(/\/app\/products/);
// Verify search input exists = page rendered correctly (more reliable than heading with icon)
await expect(page.getByPlaceholder("搜索成片名称...")).toBeVisible({
timeout: 15_000,
});
});