From 66cf08517c8dfa489b4e7a9f9a7d88ab1eb0b57b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Andr=C3=A9?= Date: Mon, 9 Nov 2026 01:37:54 +0100 Subject: [PATCH] test(settings): await the native help opening receipt The contextual-help test reads opened.at(-1) immediately after clicking the session-environment tip. On the local Tauri host the opener dynamically imports the native API, so the click can finish before its receipt arrives; the assertion then sees the preceding keep-awake link instead of the requested destination. Wait for the third opening receipt before the existing exact URL, disclosure and renderer assertions, matching the test's existing wait for its first two receipts. Keep all selectors, expected destinations, accessibility checks and deadlines unchanged. No product or help mapping changes. The original reproduces both failing Tauri variants; the corrected file passes all eight cases, independently repeated with pinned Node 24.22.2 in headless Chromium. Reused dependencies include a different Solid patch version than the current pin, so exact dependency qualification remains for CI. --- packages/ui/tests/browser/settings-info-tip.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/ui/tests/browser/settings-info-tip.test.ts b/packages/ui/tests/browser/settings-info-tip.test.ts index 678b754fa7..0f66530f46 100644 --- a/packages/ui/tests/browser/settings-info-tip.test.ts +++ b/packages/ui/tests/browser/settings-info-tip.test.ts @@ -66,6 +66,7 @@ for (const [host, context] of [["web", "remote"], ["electron", "local"], ["tauri assert.equal(await page.locator(".settings-choice-row input").isChecked(), false) assert.deepEqual(await page.evaluate(() => [(window as any).fixture.changed(), (window as any).fixture.leaked()]), [0, 0]) await page.locator("summary [role=link]").click() + await page.waitForFunction(() => (window as any).opened.length === 3) assert.equal(await page.locator("details").getAttribute("open"), null) assert.equal((await opened(page)).at(-1), `${base}en/opencode.html#session-environment`) assert.equal(page.url(), url)