Skip to content

Commit 37b1dda

Browse files
committed
chore: shortened timeout times
1 parent 1241a3e commit 37b1dda

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

e2e/pages/alcs/alcs-login-page.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ export class ALCSLoginPage {
2525
// Click IDIR link and wait for navigation to external auth service
2626
// Use domcontentloaded since external auth services can be slow
2727
await Promise.all([
28-
this.page.waitForURL('**/auth/**', { timeout: 60000, waitUntil: 'domcontentloaded' }),
28+
this.page.waitForURL('**/auth/**', { timeout: 30000, waitUntil: 'domcontentloaded' }),
2929
this.idirLink.click(),
3030
]);
31-
31+
3232
// Wait for login form to be ready
3333
await this.userIdTextbox.waitFor({ state: 'visible', timeout: 30000 });
34-
34+
3535
await this.userIdTextbox.fill(username);
3636
await this.passwordTextbox.fill(password);
3737
await this.continueButton.click();

e2e/pages/portal/parcels-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class ParcelsPage {
168168
await this.ownerSaveButton.click();
169169

170170
// Wait for dialog to disappear
171-
await this.ownerAddDialog.waitFor({ state: 'hidden', timeout: 15000 });
171+
await this.ownerAddDialog.waitFor({ state: 'hidden', timeout: 5000 });
172172
}
173173

174174
// Actions

e2e/pages/portal/portal-login-page.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ export class PortalLoginPage {
2525
// Click login and wait for navigation to external auth service
2626
// Use domcontentloaded since external auth services can be slow
2727
await Promise.all([
28-
this.page.waitForURL('**/auth/**', { timeout: 60000, waitUntil: 'domcontentloaded' }),
28+
this.page.waitForURL('**/auth/**', { timeout: 30000, waitUntil: 'domcontentloaded' }),
2929
this.loginButton.click(),
3030
]);
31-
31+
3232
// Wait for login form to be ready
3333
await this.userIdTextbox.waitFor({ state: 'visible', timeout: 30000 });
34-
34+
3535
await this.userIdTextbox.fill(username);
3636
await this.passwordTextbox.fill(password);
3737
await this.continueButton.click();

e2e/playwright.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export default defineConfig({
3030

3131
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
3232
trace: 'on-first-retry',
33-
33+
3434
/* Increase timeouts for external auth services which can be slow */
35-
navigationTimeout: 60000,
35+
navigationTimeout: 30000,
3636
actionTimeout: 30000,
3737
},
3838

0 commit comments

Comments
 (0)