Skip to content

Commit

Permalink
Merge pull request #5389 from mozilla/MNTOR-3852
Browse files Browse the repository at this point in the history
MNTOR-3852: e2e test wait time for page load
  • Loading branch information
mansaj authored Dec 9, 2024
2 parents eb93253 + 61ba7ef commit f49c5a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/e2e/pages/landingPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,10 @@ export class LandingPage {
}

async goToSignIn() {
await this.page.waitForTimeout(500); // sign in button may not be loaded at this point.
await this.signInButton.click();

Check failure on line 266 in src/e2e/pages/landingPage.ts

View workflow job for this annotation

GitHub Actions / e2e-tests

[chromium] › purchase.spec.ts:154:3 › stage - Breach Scan

3) [chromium] › purchase.spec.ts:154:3 › stage - Breach Scan, Monitor Plus Purchase Flow › Verify that the user can purchase the plus subscription with a PayPal account - yearly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 180000ms exceeded. Call log: - waiting for getByRole('button', { name: 'Sign In' }) at ../pages/landingPage.ts:266 264 | async goToSignIn() { 265 | await this.page.waitForTimeout(500); // sign in button may not be loaded at this point. > 266 | await this.signInButton.click(); | ^ 267 | // FxA can take a while to load on stage: 268 | await this.page.waitForURL("**/oauth/**", { timeout: 60_000 }); 269 | } at LandingPage.goToSignIn (/home/runner/work/blurts-server/blurts-server/src/e2e/pages/landingPage.ts:266:29) at /home/runner/work/blurts-server/blurts-server/src/e2e/specs/purchase.spec.ts:35:5
// FxA can take a while to load on stage:
await this.page.waitForURL("**/oauth/**", { timeout: 120_000 });
await this.page.waitForURL("**/oauth/**", { timeout: 60_000 });

Check failure on line 268 in src/e2e/pages/landingPage.ts

View workflow job for this annotation

GitHub Actions / e2e-tests

[chromium] › purchase.spec.ts:89:3 › stage - Breach Scan

2) [chromium] › purchase.spec.ts:89:3 › stage - Breach Scan, Monitor Plus Purchase Flow › Verify that the user can purchase the plus subscription with a Stripe card - Monthly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: page.waitForURL: Timeout 60000ms exceeded. =========================== logs =========================== waiting for navigation to "**/oauth/**" until "load" ============================================================ at ../pages/landingPage.ts:268 266 | await this.signInButton.click(); 267 | // FxA can take a while to load on stage: > 268 | await this.page.waitForURL("**/oauth/**", { timeout: 60_000 }); | ^ 269 | } 270 | 271 | async enterFreeScanEmail(email: string) { at LandingPage.goToSignIn (/home/runner/work/blurts-server/blurts-server/src/e2e/pages/landingPage.ts:268:21) at /home/runner/work/blurts-server/blurts-server/src/e2e/specs/purchase.spec.ts:35:5
}

async enterFreeScanEmail(email: string) {
Expand Down

0 comments on commit f49c5a4

Please sign in to comment.