#137 Feinjustierung: Checkbox-Ausrichtung im NodeView (−3px) #142

Merged
fable-5 merged 2 commits from fix-137-3px into main 2026-07-19 21:45:29 +02:00
Showing only changes of commit 60be198e51 - Show all commits

View File

@ -39,8 +39,13 @@ test('search finds page content, highlights it, and is keyboard-operable', async
await page.keyboard.type(`the unique ${word} lives in this body`);
await page.reload();
await expect(page.locator('.editor-content')).toContainText(word);
// Leave edit mode so "/" is a shortcut, not editor input.
await page.locator('.editor-page__mode-toggle').click();
// The reload already landed back in read mode (the mode state resets), so
// "/" acts as the global shortcut here. This spec used to click the mode
// toggle again "to leave edit mode" — which actually RE-ENTERED it; that
// passed only while entering edit mode left focus on the toggle button.
// Since the editor grabs focus on entering edit mode (PR #140), "/" would
// become ordinary editor input there, racing the deferred focus — the
// intermittent-then-persistent failure of this pack.
// Open search with the "/" shortcut.
await page.keyboard.press('/');