Browse Source

fix(playwright): remove timeout

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

9
tests/playwright/pages/Base.ts

@ -28,8 +28,7 @@ export default abstract class BasePage {
httpMethodsToMatch?: string[];
responseJsonMatcher?: ResponseSelector;
}) {
const waitForResponsePromise = this.rootPage.waitForResponse(
res => {
const waitForResponsePromise = this.rootPage.waitForResponse(res => {
let isResJsonMatched = true;
if (responseJsonMatcher) {
try {
@ -44,11 +43,7 @@ export default abstract class BasePage {
httpMethodsToMatch.includes(res.request().method()) &&
isResJsonMatched
);
},
{
timeout: 100000,
}
);
});
await uiAction();
await waitForResponsePromise;

Loading…
Cancel
Save