Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions tests/browser/editor-pipeline.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,12 @@ test("caret and focus changes reuse ranges until code or language changes", asyn
editor.focus();
});
await page.keyboard.press("ControlOrMeta+A");
await page.waitForFunction(
() => document.querySelectorAll(".matching-bracket").length === 0,
);
// Selecting all clears the bracket marks in a queued paint. Count the
// replacement only after that paint, whatever frame the keypress reached.
await page
.locator(".matching-bracket")
.first()
.waitFor({ state: "detached" });
await page.evaluate(() => {
window.overlayPaints = 0;
});
Expand Down