Skip to content

Commit 52bc0f1

Browse files
wolfqingclaude
andcommitted
test(gateway): pick the select option by type-ahead so the recorder test passes on macOS
On macOS, headless Chromium opens the native menu when ArrowDown is pressed on a closed <select>, so the value never changes and no select step is recorded. Typing the option's first letter changes the value with trusted input/change events on every platform. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent cf6f17c commit 52bc0f1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎gateway/test/workflow-recorder.chromium.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ describe('workflow recorder in Chromium', () => {
8383
input.dispatchEvent(new Event('input', { bubbles: true }));
8484
})()`)
8585
await page.waitForTimeout(450)
86-
await page.getByLabel('Plan').click()
87-
await page.keyboard.press('ArrowDown')
86+
// Type-ahead changes a closed <select> on every platform; on macOS, ArrowDown only opens the native menu.
87+
await page.getByLabel('Plan').focus()
88+
await page.keyboard.type('P')
8889
await page.getByLabel('Search').fill('OpenGrok workflow')
8990
await page.getByLabel('Search').press('Enter')
9091
await page.waitForURL((url) => url.pathname === '/results')

0 commit comments

Comments
 (0)