From 1bfe61d3c3756b953695e81265741d139a9850c0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2026 11:33:29 +0000 Subject: [PATCH 1/2] chore(deps): bump actions/cache from 4 to 6 Bumps [actions/cache](https://github.com/actions/cache) from 4 to 6. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/cache dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index b8c9365..93ed9fa 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -30,7 +30,7 @@ jobs: - uses: ./.github/actions/setup-bun - name: Cache Playwright Browsers id: playwright-cache - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/.cache/ms-playwright key: playwright-${{ runner.os }}-${{ hashFiles('bun.lock') }} From 26b890dd85c9e6feb6a464fc94c190c33dabb74f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Jul 2026 21:01:06 +0000 Subject: [PATCH 2/2] fix(tests): wait for selectionchange in selectTextInEditor before returning --- tests/utils.ts | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/tests/utils.ts b/tests/utils.ts index a4577b8..682db38 100644 --- a/tests/utils.ts +++ b/tests/utils.ts @@ -57,7 +57,7 @@ export async function selectTextInEditor( const text = editor(page, editorName).getByText(selectedText).first() await text.click() - await text.evaluate((node, selected) => { + await text.evaluate(async (node, selected) => { const root = node.closest('[contenteditable="true"]') if (root == null) { @@ -73,18 +73,23 @@ export async function selectTextInEditor( const index = value.indexOf(selected) if (index >= 0) { - const range = document.createRange() - range.setStart(textNode, index) - range.setEnd(textNode, index + selected.length) - const selection = root.ownerDocument?.getSelection() if (selection == null) { throw new Error('Expected an active selection') } - selection.removeAllRanges() - selection.addRange(range) + await new Promise((resolve) => { + document.addEventListener('selectionchange', () => resolve(), { + once: true, + }) + selection.setBaseAndExtent( + textNode, + index, + textNode, + index + selected.length, + ) + }) return }