e2e-Fixes nach CI: section-styles-Selektor eindeutig, settings-nav-Timing
Das Block-Menü ist seit dem eingebauten Aufgabenübersicht-Eintrag (#154) immer sichtbar und teilt die Styling-Klasse editor-toolbar__section-select — der section-styles-Pack adressiert das Abschnitts-Select jetzt per :not(.editor-toolbar__block-select). settings-nav: toBeInViewport bekommt 10 s für Smooth-Scroll auf langsamen Runnern. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0155v2aT8AG1kZDQEZiCLBWC
This commit is contained in:
parent
f9d23bf8d0
commit
5444c39458
@ -83,7 +83,9 @@ test('wrap, restyle in read mode, unwrap, and neutral fallback when disabled', a
|
|||||||
await page.keyboard.type('Boxed content');
|
await page.keyboard.type('Boxed content');
|
||||||
|
|
||||||
// Wrap the paragraph in the plugin's style via the toolbar picker.
|
// Wrap the paragraph in the plugin's style via the toolbar picker.
|
||||||
const picker = page.locator('.editor-toolbar__section-select');
|
// Not the block picker: it shares the styling class and is always
|
||||||
|
// visible since the built-in task overview entry (#154).
|
||||||
|
const picker = page.locator('.editor-toolbar__section-select:not(.editor-toolbar__block-select)');
|
||||||
await picker.selectOption(`${PLUGIN_ID}/boxed`);
|
await picker.selectOption(`${PLUGIN_ID}/boxed`);
|
||||||
const section = content.locator(`.dt-section.dt-style-${PLUGIN_ID}-boxed`);
|
const section = content.locator(`.dt-section.dt-style-${PLUGIN_ID}-boxed`);
|
||||||
await expect(section).toContainText('Boxed content');
|
await expect(section).toContainText('Boxed content');
|
||||||
|
|||||||
@ -31,7 +31,8 @@ test('user settings show the jump nav and clicking scrolls + activates', async (
|
|||||||
const last = links.last();
|
const last = links.last();
|
||||||
await last.click();
|
await last.click();
|
||||||
const lastSection = page.locator('.settings-layout section[id]').last();
|
const lastSection = page.locator('.settings-layout section[id]').last();
|
||||||
await expect(lastSection).toBeInViewport();
|
// Smooth scrolling needs a moment on a loaded CI runner.
|
||||||
|
await expect(lastSection).toBeInViewport({ timeout: 10_000 });
|
||||||
await expect(last).toHaveClass(/settings-nav__link--active/);
|
await expect(last).toHaveClass(/settings-nav__link--active/);
|
||||||
|
|
||||||
await context.close();
|
await context.close();
|
||||||
@ -54,7 +55,9 @@ test('pond settings derive the nav from their sections', async ({ browser }) =>
|
|||||||
expect(await links.count()).toBeGreaterThanOrEqual(8);
|
expect(await links.count()).toBeGreaterThanOrEqual(8);
|
||||||
|
|
||||||
await links.last().click();
|
await links.last().click();
|
||||||
await expect(page.locator('.settings-layout section[id]').last()).toBeInViewport();
|
await expect(page.locator('.settings-layout section[id]').last()).toBeInViewport({
|
||||||
|
timeout: 10_000,
|
||||||
|
});
|
||||||
|
|
||||||
await context.close();
|
await context.close();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user