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 <noreply@anthropic.com>
This commit is contained in:
2026-07-04 21:06:08 +02:00
co-authored by Claude Opus 4.8
parent 45c2d54d2b
commit c76c16b06d
+6 -4
View File
@@ -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 <details> 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 ───────────────