commit 4e47c51eb7cd09de32fc07cfc1fc1826bdde0e31
parent d1133a23024d983cf2231bc125e2da7448dbe1aa
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.