Keep a reopened delete dialog's spec and a handoff's Copied word through late closes and redraws, and wait for the workspace frame before typing @ in the mention test

AI Assisted
This commit is contained in:
jparkerweb committed 2026-10-26 21:43:53 -07:00
1 parent 2709252daa
commit 0d569954c4
3 files changed
+32 -7

No files matched your search

@@ -73,6 +73,10 @@ test("an @ in a note offers the workspace's folders, and picking one writes its
await addFolderFromDialog(s, datasetsFolder());
await s.page.locator("#workspace-done").click();
await s.page.locator("#workspace-modal[open]").waitFor({ state: "detached" });
// The @ list is the page's workspace frame, which can land after the
// dialog closes; typed before then, the @ has nothing to offer. The footer
// reads the same frame.
await s.page.waitForFunction(() => (document.getElementById("footer-where").dataset.key || "").includes("+ 1 folder"));
const note = s.page.locator("#aside #thread-q1");
await note.click();