From c76c16b06d4729c4f89ef4ac3b842ed3b7b79348 Mon Sep 17 00:00:00 2001 From: Mischa Date: Sat, 4 Jul 2026 21:06:08 +0200 Subject: [PATCH] test(post-form): AE3 no longer references the removed hero field The hero_image blueprint field was dropped (journal heroes come from the first uploaded photo), so AE3 now asserts the More-options disclosure toggles open/closed rather than probing the hero input's visibility. Co-Authored-By: Claude Opus 4.8 --- tests/ui/post/post-form-ux.spec.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/ui/post/post-form-ux.spec.js b/tests/ui/post/post-form-ux.spec.js index 2d3688a..ad9b167 100644 --- a/tests/ui/post/post-form-ux.spec.js +++ b/tests/ui/post/post-form-ux.spec.js @@ -18,12 +18,14 @@ test.afterAll(() => { created.forEach(cleanupEntry); }); // ── AE3: advanced fields sit behind "More options" ──────────────────────────── test('AE3: advanced fields are hidden until "More options" is expanded', async ({ page }) => { await page.goto('/post'); - const hero = page.locator('input[name="data[hero_image]"]'); + // The hero-image field was removed (journal heroes come from the first + // uploaded photo); force_connect/featured remain the advanced trio's members. + const details = page.locator('details.more-options'); - await expect(page.locator('details.more-options')).toBeAttached(); - await expect(hero).toBeHidden(); // collapsed
hides content + await expect(details).toBeAttached(); + await expect(details).toHaveJSProperty('open', false); // collapsed by default await page.locator('.more-options__summary').click(); - await expect(hero).toBeVisible(); + await expect(details).toHaveJSProperty('open', true); }); // ── AE1: HEIC → JPEG conversion, posted with a working thumbnail ───────────────