From 027943968360b697249eb234cfed5a8ebe967196 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 17 Jun 2023 00:55:08 +0800 Subject: [PATCH] fix(playwright): avoid using promise all on waitForResponse --- tests/playwright/pages/Base.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/playwright/pages/Base.ts b/tests/playwright/pages/Base.ts index 92365409ef..7fdb4e94fc 100644 --- a/tests/playwright/pages/Base.ts +++ b/tests/playwright/pages/Base.ts @@ -45,9 +45,8 @@ export default abstract class BasePage { ); }); - const uiActionPromise = uiAction(); - - await Promise.all([waitForResponsePromise, uiActionPromise]); + await uiAction(); + await waitForResponsePromise; } async attachFile({ filePickUIAction, filePath }: { filePickUIAction: Promise; filePath: string[] }) {