mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-19 13:11:18 -08:00
Steady the status line test: wait for the post's redraw before typing the answer
AI Assisted
This commit is contained in:
1 parent
09fb4f4eec
commit
8658631b5d
1 file changed
+4
@@ -818,6 +818,10 @@ test("the quiet, not running and not connected lines offer What to check, openin
|
|||||||
// Answered and sent, never collected, and nobody listening: the saved line.
|
// Answered and sent, never collected, and nobody listening: the saved line.
|
||||||
await s.page.clock.setSystemTime(Date.now());
|
await s.page.clock.setSystemTime(Date.now());
|
||||||
s.post({ agent: { status: "waiting" } });
|
s.post({ agent: { status: "waiting" } });
|
||||||
|
// The post redraws the question: an answer typed before that redraw lands is lost with the
|
||||||
|
// old box, and Send then stays off. Wait for the page to show the post and go quiet.
|
||||||
|
await lineSays(s, /^Your turn: 1 question waiting\./);
|
||||||
|
await quiet(s.page);
|
||||||
await fillBox(itemCard(s.page, "q1").locator(".md-host, input[type=text]").first(), "audit-export");
|
await fillBox(itemCard(s.page, "q1").locator(".md-host, input[type=text]").first(), "audit-export");
|
||||||
await s.page.click("#btn-send");
|
await s.page.click("#btn-send");
|
||||||
await lineSays(s, /^Sent\. Waiting for Plan2Code\./);
|
await lineSays(s, /^Sent\. Waiting for Plan2Code\./);
|
||||||
|
|||||||
Reference in new issue
Block a user