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:
@@ -18,12 +18,14 @@ test.afterAll(() => { created.forEach(cleanupEntry); });
|
|||||||
// ── AE3: advanced fields sit behind "More options" ────────────────────────────
|
// ── AE3: advanced fields sit behind "More options" ────────────────────────────
|
||||||
test('AE3: advanced fields are hidden until "More options" is expanded', async ({ page }) => {
|
test('AE3: advanced fields are hidden until "More options" is expanded', async ({ page }) => {
|
||||||
await page.goto('/post');
|
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(details).toBeAttached();
|
||||||
await expect(hero).toBeHidden(); // collapsed <details> hides content
|
await expect(details).toHaveJSProperty('open', false); // collapsed by default
|
||||||
await page.locator('.more-options__summary').click();
|
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 ───────────────
|
// ── AE1: HEIC → JPEG conversion, posted with a working thumbnail ───────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user