Add E2E tests for silent authentication #782
e2e_pr_smoke.yml
on: pull_request
e2e-tests-smoke
5m 58s
Annotations
7 errors 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/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=GBiJuHa2xkeHZMx6twf96MZZK-1EBdDPwwSd_HCl2ik"
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
|
e2e-tests-smoke
Process completed with exit code 1.
|
🎭 Playwright Run Summary
1 failed
[chromium] › auth.spec.ts:42:3 › local - Authentication flow verification @smoke › Verify sign in with existing user
2 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
23 passed (4.9m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report
|
7.95 MB |
|
test-results
|
6.27 MB |
|