mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 20:45:33 -08:00
Give the web console's state lock and page tests room under load
AI Assisted
This commit is contained in:
1 parent
0de630603b
commit
cb6468577d
8 files changed
+48
-9
No files matched your search
@@ -760,6 +760,9 @@ test("text typed into a tab that is then deleted is never saved, and a tab delet
|
||||
deleteTab(s.project, elsewhere);
|
||||
await tabNamed(s, "Elsewhere").click();
|
||||
await s.page.waitForFunction((want) => document.getElementById("notepad-status").textContent.includes(want), errorSentence("no-such-tab"));
|
||||
// The status line updates first; the bar itself waits on a second, separate
|
||||
// fetch (readNote(null), after the first one 404s) that lands after it.
|
||||
await s.page.waitForFunction(() => document.querySelectorAll("#notepad-tabs .notepad-tab").length === 1);
|
||||
assert.deepEqual(await tabNames(s), ["Notes"]);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user