0775537d4c
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
17 lines
839 B
TypeScript
17 lines
839 B
TypeScript
import { expect, test } from "@playwright/test";
|
|
import { gotoProducts, importWithImages, signUpWithStorefront } from "../helpers";
|
|
|
|
test("e2e_image_outcomes: per-image outcomes, problem rows, notice band", async ({ page }) => {
|
|
await signUpWithStorefront(page);
|
|
await gotoProducts(page);
|
|
await importWithImages(page);
|
|
// Run detail polls fetching_images → terminal; wait for the outcome summary.
|
|
await expect(page.getByText("1 fetched · 1 rejected · 1 failed")).toBeVisible({ timeout: 30_000 });
|
|
// Problem images listed in the outcomes table.
|
|
await expect(page.getByText("tiny-lamp")).toBeVisible();
|
|
await expect(page.getByText("gone-lamp")).toBeVisible();
|
|
// Products page surfaces the aggregate notice.
|
|
await gotoProducts(page);
|
|
await expect(page.getByText(/products have image problems/)).toBeVisible();
|
|
});
|