Add E2E tests for silent authentication #429
Annotations
10 errors, 2 warnings, and 1 notice
Run Playwright tests:
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
|
Run Playwright tests:
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
|
Run Playwright tests:
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.
|
Run Playwright tests:
src/e2e/pages/authPage.ts#L102
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 "**/oauth/**" until "load"
navigated to "***/?feature_flags=PromptNoneAuthFlow&utm_source=moz-account&utm_campaign=settings-promo&utm_content=monitor-free"
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=OGKRoe5nsfHIXUdvSrxJKh9FGU1CzhH_wpWlGlASReg"
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=OGKRoe5nsfHIXUdvSrxJKh9FGU1CzhH_wpWlGlASReg"
navigated to "***/user/welcome"
navigated to "***/user/welcome"
============================================================
at ../pages/authPage.ts:102
100 | );
101 | // FxA can take a while to load on stage:
> 102 | await this.page.waitForURL("**/oauth/**");
| ^
103 | }
104 | }
105 |
at AuthPage.initSilentAuth (/home/runner/work/blurts-server/blurts-server/src/e2e/pages/authPage.ts:102:21)
at /home/runner/work/blurts-server/blurts-server/src/e2e/specs/auth.spec.ts:89:5
|
Run Playwright tests:
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
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 60000ms exceeded.
|
Run Playwright tests:
src/e2e/pages/authPage.ts#L102
2) [chromium] › auth.spec.ts:72:3 › local - Authentication flow verification @smoke › Verify successful silent authentication with existing user
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.waitForURL: Test timeout of 60000ms exceeded.
=========================== logs ===========================
waiting for navigation to "**/oauth/**" until "load"
navigated to "***/?feature_flags=PromptNoneAuthFlow&utm_source=moz-account&utm_campaign=settings-promo&utm_content=monitor-free"
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=Th7AQcSQJhu3WP4Ks1XfgT9F7JpVhsECau-xpLZENlU"
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=Th7AQcSQJhu3WP4Ks1XfgT9F7JpVhsECau-xpLZENlU"
navigated to "***/user/dashboard/action-needed?dialog=subscriptions"
navigated to "***/user/dashboard/action-needed?dialog=subscriptions"
============================================================
at ../pages/authPage.ts:102
100 | );
101 | // FxA can take a while to load on stage:
> 102 | await this.page.waitForURL("**/oauth/**");
| ^
103 | }
104 | }
105 |
at AuthPage.initSilentAuth (/home/runner/work/blurts-server/blurts-server/src/e2e/pages/authPage.ts:102:21)
at /home/runner/work/blurts-server/blurts-server/src/e2e/specs/auth.spec.ts:89:5
|
Run Playwright tests:
src/e2e/specs/auth.spec.ts#L1
3) [chromium] › auth.spec.ts:104:3 › local - Authentication flow verification @smoke › Verify failed silent authentication with existing user
Test timeout of 60000ms exceeded.
|
Run Playwright tests:
src/e2e/pages/authPage.ts#L102
3) [chromium] › auth.spec.ts:104:3 › local - Authentication flow verification @smoke › Verify failed silent authentication with existing user
Error: page.waitForURL: Test timeout of 60000ms exceeded.
=========================== logs ===========================
waiting for navigation to "**/oauth/**" until "load"
navigated to "***/?feature_flags=PromptNoneAuthFlow&utm_source=moz-account&utm_campaign=settings-promo&utm_content=monitor-free"
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=wIgL7g78pBPeS5FwGCy0AQxHZlAcSjPGTIHBdkYxKrw"
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=wIgL7g78pBPeS5FwGCy0AQxHZlAcSjPGTIHBdkYxKrw"
navigated to "***/"
navigated to "***/"
============================================================
at ../pages/authPage.ts:102
100 | );
101 | // FxA can take a while to load on stage:
> 102 | await this.page.waitForURL("**/oauth/**");
| ^
103 | }
104 | }
105 |
at AuthPage.initSilentAuth (/home/runner/work/blurts-server/blurts-server/src/e2e/pages/authPage.ts:102:21)
at /home/runner/work/blurts-server/blurts-server/src/e2e/specs/auth.spec.ts:115:5
|
Run Playwright tests:
src/e2e/specs/auth.spec.ts#L1
3) [chromium] › auth.spec.ts:104:3 › local - Authentication flow verification @smoke › Verify failed silent authentication with existing user
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 60000ms exceeded.
|
Run Playwright tests:
src/e2e/pages/authPage.ts#L102
3) [chromium] › auth.spec.ts:104:3 › local - Authentication flow verification @smoke › Verify failed silent authentication with existing user
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.waitForURL: Test timeout of 60000ms exceeded.
=========================== logs ===========================
waiting for navigation to "**/oauth/**" until "load"
navigated to "***/?feature_flags=PromptNoneAuthFlow&utm_source=moz-account&utm_campaign=settings-promo&utm_content=monitor-free"
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=n1aTRwwxTSnXW61oHklGoL1A29DOWHxaPtbcDRSxluY"
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=n1aTRwwxTSnXW61oHklGoL1A29DOWHxaPtbcDRSxluY"
navigated to "***/"
navigated to "***/"
============================================================
at ../pages/authPage.ts:102
100 | );
101 | // FxA can take a while to load on stage:
> 102 | await this.page.waitForURL("**/oauth/**");
| ^
103 | }
104 | }
105 |
at AuthPage.initSilentAuth (/home/runner/work/blurts-server/blurts-server/src/e2e/pages/authPage.ts:102:21)
at /home/runner/work/blurts-server/blurts-server/src/e2e/specs/auth.spec.ts:115:5
|
Run Playwright tests:
[firefox] › dashboard/dashboard-breaches-scan.spec.ts#L1
[firefox] › dashboard/dashboard-breaches-scan.spec.ts took 33.0s
|
Run Playwright tests:
[chromium] › dashboard/dashboard-breaches-scan.spec.ts#L1
[chromium] › dashboard/dashboard-breaches-scan.spec.ts took 32.7s
|
Run Playwright tests
5 failed
[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
[chromium] › auth.spec.ts:104:3 › local - Authentication flow verification @smoke › Verify failed silent authentication with existing user
[firefox] › auth.spec.ts:72:3 › local - Authentication flow verification @smoke › Verify successful silent authentication with existing user
[firefox] › auth.spec.ts:104:3 › local - Authentication flow verification @smoke › Verify failed silent authentication with existing user
14 skipped
71 passed (8.0m)
|
Loading