mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 04:45:33 -08:00
Wait for both full-screen messages in the in-app Activities test: the list already ended in false
AI Assisted
This commit is contained in:
1 parent
4265eda68b
commit
7336b7fcc5
1 file changed
+2
-1
@@ -372,7 +372,8 @@ test("framed, an Activities game in full screen asks the app for the whole scree
|
||||
assert.deepEqual(await told(), [true, false, true, false], "F and Esc each give it back");
|
||||
await s.page.keyboard.press("f");
|
||||
s.post({ items: [{ id: "q2", kind: "text", title: "Who uses it", body: "Who opens the export?" }], agent: { status: "waiting" } });
|
||||
await until(async () => (await told()).at(-1) === false, 5000);
|
||||
// Wait for both new messages: the list already ends in false, so checking only its last item passed at once.
|
||||
await until(async () => (await told()).length >= 6, 5000);
|
||||
assert.deepEqual(await told(), [true, false, true, false, true, false], "and so does a new question");
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user