Let the page go quiet before typing in the Markdown answer box test

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-05 19:25:50 -08:00
1 parent 959554d127
commit 958c0f4ccc
1 file changed
+3
+3
View File
@@ -49,6 +49,9 @@ test("the answer box renders Markdown live, like the Notebook", async (t) => {
const content = card.locator(".md-host .cm-content");
await content.waitFor({ timeout: 15000 });
assert.equal(await card.locator("textarea").count(), 0, "the answer box is the Markdown editor, not a textarea");
// A redraw that lands while the box is typed in sends the caret back to the start (seen on
// slow runners as "plain**bold**"): let the page go quiet before typing.
await settled(s.page, "#main");
await content.click();
await content.pressSequentially("**bold**\nplain");
await card.locator(".cm-strong", { hasText: "bold" }).waitFor();