Skip to content

Add E2E tests for silent authentication #783

Add E2E tests for silent authentication

Add E2E tests for silent authentication #783

Triggered via pull request October 30, 2024 17:03
Status Success
Total duration 7m 59s
Artifacts 2

e2e_pr_full.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors, 5 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: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/specs/auth.spec.ts#L91
2) [chromium] › auth.spec.ts:72:3 › local - Authentication flow verification @smoke › Verify successful silent authentication with existing user Error: page.waitForURL: Test timeout of 60000ms exceeded. =========================== logs =========================== waiting for navigation to "**/user/dashboard/**" until "load" navigated to "https://accounts.stage.mozaws.net/authorization?client_id=edd29a80019d61a1&scope=profile+https%3A%2F%2Fidentity.mozilla.com%2Faccount%2Fsubscriptions&response_type=code&redirect_uri=***%2Fapi%2Fauth%2Fcallback%2Ffxa&access_type=offline&action=email&prompt=none&max_age=0&state=TS3uttEUcAQdiLtWfcf9Y7cO5BA8Xl1ZbcNpX2M5d6s" navigated to "***/user/welcome" navigated to "***/user/welcome" ============================================================ 89 | 90 | // assert successful login > 91 | await page.waitForURL("**/user/dashboard/**"); | ^ 92 | 93 | await testInfo.attach( 94 | `${process.env.E2E_TEST_ENV}-silent-authentication-monitor-dashboard.png`, at /home/runner/work/blurts-server/blurts-server/src/e2e/specs/auth.spec.ts:91:16
[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
Slow Test: [firefox] › dashboard/dashboard-breaches-scan.spec.ts#L1
[firefox] › dashboard/dashboard-breaches-scan.spec.ts took 41.2s
Slow Test: [chromium] › dashboard/dashboard-breaches-scan.spec.ts#L1
[chromium] › dashboard/dashboard-breaches-scan.spec.ts took 38.8s
Slow Test: [firefox] › dashboard/dashboard-payment.spec.ts#L1
[firefox] › dashboard/dashboard-payment.spec.ts took 22.0s
Slow Test: [chromium] › dashboard/dashboard-payment.spec.ts#L1
[chromium] › dashboard/dashboard-payment.spec.ts took 16.7s
Slow Test: [chromium] › dashboard/dashboard-overview-card.spec.ts#L1
[chromium] › dashboard/dashboard-overview-card.spec.ts took 16.1s
🎭 Playwright Run Summary
3 flaky [chromium] › auth.spec.ts:42:3 › local - Authentication flow verification @smoke › Verify sign in with existing user [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 14 skipped 73 passed (6.7m)

Artifacts

Produced during runtime
Name Size
playwright-report
9.83 MB
test-results
7.93 MB