Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion libs/test-utils/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const config: PlaywrightTestConfig = {
testMatch: 'src/tests/**/*.pw.ts',
timeout: 10000,
use: {
actionTimeout: 2000,
actionTimeout: 5000,
},
expect: {
timeout: 3000,
Expand Down
7 changes: 7 additions & 0 deletions libs/test-utils/src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ export function comboboxClear<D extends DriverT>(
this: ComboboxWrapper<D>
): D['actionReturn'] {
return runSequence([
// Wait before clearing to ensure any previous operations have fully settled.
// This prevents a sporadic issue in Playwright Safari where the combobox will not clear
() =>
this.ctx.driver.eval(
this.locator,
() => new Promise((resolve) => setTimeout(resolve, 200))
),
() => this.ctx.driver.userClear(this.control()),
() => this.ctx.driver.userBlur(this.control()), // Combobox only updates value on blur
]);
Expand Down
Loading