commit 9e1f99900dc3daa83b7a6b069003f021cf4959e7
parent dfc66c1f7c66b81319b34e5d5ddda427d357da91
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Fri, 25 Sep 2026 21:07:03 -0400
editor: sites-crud's brand test filters the form's alert from Next's route announcer (brand S0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/editor/e2e/sites-crud.spec.ts b/editor/e2e/sites-crud.spec.ts
@@ -456,7 +456,10 @@ test("brand accent radio group + wordmark lead round-trip to site.json", async (
// A lead that is not how the header title starts is refused, not dropped.
await lead.fill("brandy");
await page.getByRole("button", { name: /save site/i }).click();
- await expect(page.getByRole("alert")).toContainText(/wordmark lead/i);
+ // Filtered: Next's route announcer is a second (empty) role=alert.
+ await expect(
+ page.getByRole("alert").filter({ hasText: /wordmark lead must be/i }),
+ ).toBeVisible();
expect((await readJson<BrandSiteFile>(file)).wordmarkLead).toBe("Brandy");
// Back to the default: stored as absent; a blank lead removes the key.