Browse Source

fix(playwright): avoid using promise all on waitForResponse

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
0279439683
  1. 5
      tests/playwright/pages/Base.ts

5
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<any>; filePath: string[] }) {

Loading…
Cancel
Save