docs/plans/2026-04-24-richtext-bold-selection-red-test.md
Reproduce the regression where selecting editable in examples/richtext, toggling bold on, then toggling bold off collapses the visible selection.
editable word, not a model-only shortcut.editable.editable./Users/zbeyens/git/slate-v2/playwright/integration/examples/richtext.test.ts.rich during setup; that is also not the reported bold-off collapse.PLAYWRIGHT_BASE_URL=http://localhost:3100 bunx playwright test ./playwright/integration/examples/richtext.test.ts --project=chromium --project=firefox --project=webkit --project=mobile --grep "keeps selected word expanded after toggling toolbar bold off" --workers=4 --retries=0 passed.bun run lint:fix && bun run lint passed.bun run typecheck:root failed on existing root-wide benchmark/tmp/test debt unrelated to this row, including prior richtext.test.ts errors at lines 901 and 1284.http://localhost:3100/examples/richtext initially failed because bun serve runs Next dev and the exported dynamic example route 404s there. Serving site/out with PORT=3100 bun ./scripts/serve-playwright.mjs loaded the real page in Browser Use.select editable path autonomously.Control+A produced a visible native selection; clicking the real bold toolbar button on and off preserved the visible selection after both toggles. This did not reproduce the reported collapse.