Skip to content

Add E2E tests for silent authentication #785

Add E2E tests for silent authentication

Add E2E tests for silent authentication #785

Triggered via pull request October 30, 2024 22:35
Status Failure
Total duration 7m 43s
Artifacts 2

e2e_pr_full.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors, 4 warnings, and 1 notice
[chromium] › auth.spec.ts:42:3 › local - Authentication flow verification @smoke › Verify sign in with existing user: src/e2e/specs/auth.spec.ts#L60
1) [chromium] › auth.spec.ts:42:3 › local - Authentication flow verification @smoke › Verify sign in with existing user Error: Timed out 2000ms waiting for expect(locator).toBeVisible() Locator: getByRole('tab', { name: 'Fixed' }) Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 2000ms - waiting for getByRole('tab', { name: 'Fixed' }) 58 | 59 | // assert successful login > 60 | await expect(dashboardPage.fixedTab).toBeVisible(); | ^ 61 | await expect(dashboardPage.actionNeededTab).toBeVisible(); 62 | 63 | await testInfo.attach( at /home/runner/work/blurts-server/blurts-server/src/e2e/specs/auth.spec.ts:60:42
[chromium] › auth.spec.ts:42:3 › local - Authentication flow verification @smoke › Verify sign in with existing user: src/e2e/specs/auth.spec.ts#L60
1) [chromium] › auth.spec.ts:42:3 › local - Authentication flow verification @smoke › Verify sign in with existing user Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 2000ms waiting for expect(locator).toBeVisible() Locator: getByRole('tab', { name: 'Fixed' }) Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 2000ms - waiting for getByRole('tab', { name: 'Fixed' }) 58 | 59 | // assert successful login > 60 | await expect(dashboardPage.fixedTab).toBeVisible(); | ^ 61 | await expect(dashboardPage.actionNeededTab).toBeVisible(); 62 | 63 | await testInfo.attach( at /home/runner/work/blurts-server/blurts-server/src/e2e/specs/auth.spec.ts:60:42
[chromium] › auth.spec.ts:72:3 › local - Authentication flow verification @smoke › Verify successful silent authentication with existing user: src/e2e/specs/auth.spec.ts#L1
2) [chromium] › auth.spec.ts:72:3 › local - Authentication flow verification @smoke › Verify successful silent authentication with existing user Test timeout of 60000ms exceeded.
[chromium] › auth.spec.ts:72:3 › local - Authentication flow verification @smoke › Verify successful silent authentication with existing user: src/e2e/pages/authPage.ts#L76
2) [chromium] › auth.spec.ts:72:3 › local - Authentication flow verification @smoke › Verify successful silent authentication with existing user Error: page.goto: Test timeout of 60000ms exceeded. Call log: - navigating to "https://accounts.stage.mozaws.net/settings", waiting until "load" at ../pages/authPage.ts:76 74 | 75 | async signInToFxA(email: string, password: string) { > 76 | await this.page.goto(process.env.FXA_SETTINGS_URL as string); | ^ 77 | await this.page.context().clearCookies(); 78 | await this.page 79 | .locator("//input[@type='password'] | //div/input[@type='email']") at AuthPage.signInToFxA (/home/runner/work/blurts-server/blurts-server/src/e2e/pages/authPage.ts:76:21) at /home/runner/work/blurts-server/blurts-server/src/e2e/specs/auth.spec.ts:82:20
[firefox] › auth.spec.ts:72:3 › local - Authentication flow verification @smoke › Verify successful silent authentication with existing user: src/e2e/specs/auth.spec.ts#L1
3) [firefox] › auth.spec.ts:72:3 › local - Authentication flow verification @smoke › Verify successful silent authentication with existing user Test timeout of 60000ms exceeded.
[firefox] › auth.spec.ts:72:3 › local - Authentication flow verification @smoke › Verify successful silent authentication with existing user: src/e2e/pages/authPage.ts#L80
3) [firefox] › auth.spec.ts:72:3 › local - Authentication flow verification @smoke › Verify successful silent authentication with existing user Error: locator.waitFor: Test timeout of 60000ms exceeded. Call log: - waiting for locator('//input[@type=\'password\'] | //div/input[@type=\'email\']') to be visible at ../pages/authPage.ts:80 78 | await this.page 79 | .locator("//input[@type='password'] | //div/input[@type='email']") > 80 | .waitFor({ state: "visible" }); | ^ 81 | const visible = await this.useDifferentEmailButton.isVisible(); 82 | if (visible) { 83 | await this.useDifferentEmailButton.click(); at AuthPage.signInToFxA (/home/runner/work/blurts-server/blurts-server/src/e2e/pages/authPage.ts:80:8) at /home/runner/work/blurts-server/blurts-server/src/e2e/specs/auth.spec.ts:82:5
[firefox] › dashboard/dashboard-payment.spec.ts:22:3 › local - Breaches Dashboard - Payment › Verify that the user can select what type of plan they want: src/e2e/specs/dashboard/dashboard-payment.spec.ts#L1
4) [firefox] › dashboard/dashboard-payment.spec.ts:22:3 › local - Breaches Dashboard - Payment › Verify that the user can select what type of plan they want, verify that the Premium upsell modal is displayed correctly TypeError: Cannot read properties of undefined (reading 'childFrames')
[firefox] › dashboard/dashboard-payment.spec.ts:22:3 › local - Breaches Dashboard - Payment › Verify that the user can select what type of plan they want: src/e2e/pages/dashBoardPage.ts#L310
4) [firefox] › dashboard/dashboard-payment.spec.ts:22:3 › local - Breaches Dashboard - Payment › Verify that the user can select what type of plan they want, verify that the Premium upsell modal is displayed correctly Error: page.goto: Test ended. Call log: - navigating to "***/", waiting until "load" at ../pages/dashBoardPage.ts:310 308 | 309 | // Check yearly redirection > 310 | await this.page.goto(`${process.env.E2E_TEST_BASE_URL}`); | ^ 311 | await this.subscribeButton.waitFor(); 312 | await this.subscribeButton.click(); 313 | await this.subscribeDialogSelectYearlyPlanLink.click(); at DashboardPage.verifyPremiumUpsellModalOptions (/home/runner/work/blurts-server/blurts-server/src/e2e/pages/dashBoardPage.ts:310:21) at /home/runner/work/blurts-server/blurts-server/src/e2e/specs/dashboard/dashboard-payment.spec.ts:44:5
e2e-tests-full
Process completed with exit code 1.
Slow Test: [firefox] › dashboard/dashboard-breaches-scan.spec.ts#L1
[firefox] › dashboard/dashboard-breaches-scan.spec.ts took 37.8s
Slow Test: [chromium] › dashboard/dashboard-breaches-scan.spec.ts#L1
[chromium] › dashboard/dashboard-breaches-scan.spec.ts took 35.4s
Slow Test: [chromium] › dashboard/dashboard-overview-card.spec.ts#L1
[chromium] › dashboard/dashboard-overview-card.spec.ts took 16.8s
Slow Test: [chromium] › dashboard/dashboard-payment.spec.ts#L1
[chromium] › dashboard/dashboard-payment.spec.ts took 16.3s
🎭 Playwright Run Summary
1 failed [chromium] › auth.spec.ts:42:3 › local - Authentication flow verification @smoke › Verify sign in with existing user 3 flaky [chromium] › auth.spec.ts:72:3 › local - Authentication flow verification @smoke › Verify successful silent authentication with existing user [firefox] › auth.spec.ts:72:3 › local - Authentication flow verification @smoke › Verify successful silent authentication with existing user [firefox] › dashboard/dashboard-payment.spec.ts:22:3 › local - Breaches Dashboard - Payment › Verify that the user can select what type of plan they want, verify that the Premium upsell modal is displayed correctly 14 skipped 72 passed (6.4m)

Artifacts

Produced during runtime
Name Size
playwright-report
18.2 MB
test-results
16.4 MB