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 ───────────────