mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 04:45:33 -08:00
Let the page go quiet before typing in the Markdown answer box test
AI Assisted
This commit is contained in:
1 parent
959554d127
commit
958c0f4ccc
1 file changed
+3
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user