From b5756cae43649c95ded7f24913d0992849c96692 Mon Sep 17 00:00:00 2001 From: Marcus Andersson Date: Tue, 12 May 2026 09:05:47 +0200 Subject: [PATCH] Plugin E2E: Select MultiSelect options sequentially instead of concurrently Replace Promise.all with a for...of loop in MultiSelect.selectOptions to avoid racing concurrent Playwright clicks on the same open menu. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../plugin-e2e/src/models/components/MultiSelect.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/plugin-e2e/src/models/components/MultiSelect.ts b/packages/plugin-e2e/src/models/components/MultiSelect.ts index 7a2d728e9d..07b72dab28 100644 --- a/packages/plugin-e2e/src/models/components/MultiSelect.ts +++ b/packages/plugin-e2e/src/models/components/MultiSelect.ts @@ -12,10 +12,10 @@ export class MultiSelect extends ComponentBase { async selectOptions(values: string[], options?: SelectOptionsType): Promise { const menu = await openSelect(this, options); - return Promise.all( - values.map((value) => { - return selectByValueOrLabel(value, menu, this.ctx, options); - }) - ); + const selected: string[] = []; + for (const value of values) { + selected.push(await selectByValueOrLabel(value, menu, this.ctx, options)); + } + return selected; } }