Skip to content

feat: strict eslint #207

feat: strict eslint

feat: strict eslint #207

Triggered via pull request September 26, 2023 14:47
Status Success
Total duration 8m 6s
Artifacts 3

playwright-e2e.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors, 1 warning, and 3 notices
[firefox] › login.spec.ts:13:3 › Login Page › login with invalid credentials: src/test/models/AuthPage.ts#L58
1) [firefox] › login.spec.ts:13:3 › Login Page › login with invalid credentials › mock the submit login response Error: locator.fill: Error: strict mode violation: getByTestId('login-auth-card').locator('input[name="identifier"]') resolved to 2 elements: 1) <input id=":r3:" type="text" required="" placeholder=" …/> aka getByTestId('login-flow').getByTestId('node/input/identifier').getByPlaceholder(' ') 2) <input id=":rb:" type="text" required="" placeholder=" …/> aka getByTestId('passwordless-flow').getByTestId('node/input/identifier').getByPlaceholder(' ') =========================== logs =========================== waiting for getByTestId('login-auth-card').locator('input[name="identifier"]') ============================================================ at ../../../src/test/models/AuthPage.ts:58 56 | for (const key in this.traits) { 57 | if (this.traits[key].type === "input") { > 58 | await this.formFields[key].fill(this.traits[key].value) | ^ 59 | } else if (this.traits[key].type === "checkbox") { 60 | await this.formFields[key].click() 61 | } at ig.submitForm (/home/runner/work/elements/elements/src/test/models/AuthPage.ts:58:36) at /home/runner/work/elements/elements/src/test/mock/login.ts:101:23 at Object.LoginInvalidLoginCredentialsTest (/home/runner/work/elements/elements/src/test/mock/login.ts:90:11) at /home/runner/work/elements/elements/examples/react-spa/e2e/login.spec.ts:16:5
[firefox] › registration.spec.ts:19:3 › Registration Page › registration duplicate account: src/test/models/AuthPage.ts#L58
2) [firefox] › registration.spec.ts:19:3 › Registration Page › registration duplicate account › mock the submit registration response Error: locator.fill: Error: strict mode violation: getByTestId('registration-auth-card').locator('input[name="traits.email"]') resolved to 2 elements: 1) <input id=":r3:" required="" type="email" placeholder="…/> aka getByTestId('registration-flow').getByTestId('node/input/traits.email').getByPlaceholder(' ') 2) <input id=":rj:" required="" type="email" placeholder="…/> aka getByTestId('passwordless-flow').getByTestId('node/input/traits.email').getByPlaceholder(' ') =========================== logs =========================== waiting for getByTestId('registration-auth-card').locator('input[name="traits.email"]') ============================================================ at ../../../src/test/models/AuthPage.ts:58 56 | for (const key in this.traits) { 57 | if (this.traits[key].type === "input") { > 58 | await this.formFields[key].fill(this.traits[key].value) | ^ 59 | } else if (this.traits[key].type === "checkbox") { 60 | await this.formFields[key].click() 61 | } at ag.submitForm (/home/runner/work/elements/elements/src/test/models/AuthPage.ts:58:36) at /home/runner/work/elements/elements/src/test/mock/registration.ts:101:30 at Object.RegistrationDuplicateAccountTest (/home/runner/work/elements/elements/src/test/mock/registration.ts:90:11) at /home/runner/work/elements/elements/examples/react-spa/e2e/registration.spec.ts:28:5
[firefox] › verification.spec.ts:7:3 › Verification Page › verification success: examples/react-spa/e2e/verification.spec.ts#L1
3) [firefox] › verification.spec.ts:7:3 › Verification Page › verification success › mock the submit email verification response Test timeout of 30000ms exceeded.
[firefox] › verification.spec.ts:7:3 › Verification Page › verification success: src/test/models/AuthPage.ts#L189
3) [firefox] › verification.spec.ts:7:3 › Verification Page › verification success › mock the submit email verification response Error: page.waitForResponse: Page closed =========================== logs =========================== waiting for response "**/self-service/verification?flow=**" ============================================================ at ../../../src/test/models/AuthPage.ts:189 187 | return this.locator 188 | .page() > 189 | .waitForResponse(`**/self-service/${flow}?flow=**`) | ^ 190 | } 191 | } 192 | at ug.interceptSubmitResponse (/home/runner/work/elements/elements/src/test/models/AuthPage.ts:189:8) at ug.interceptSubmitResponse (/home/runner/work/elements/elements/src/test/models/VerificationPage.ts:134:18) at /home/runner/work/elements/elements/src/test/mock/verification.ts:63:46 at Object.VerificationSuccessTest (/home/runner/work/elements/elements/src/test/mock/verification.ts:57:11) at /home/runner/work/elements/elements/examples/react-spa/e2e/verification.spec.ts:14:5
[firefox] › verification.spec.ts:7:3 › Verification Page › verification success: examples/react-spa/e2e/verification.spec.ts#L1
3) [firefox] › verification.spec.ts:7:3 › Verification Page › verification success › mock the submit email verification response Pending operations: - locator.fill at ../../src/test/mock/verification.ts:66:10
[firefox] › verification.spec.ts:7:3 › Verification Page › verification success: examples/react-spa/e2e/verification.spec.ts#L1
3) [firefox] › verification.spec.ts:7:3 › Verification Page › verification success › mock the submit email verification response Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded.
[firefox] › verification.spec.ts:7:3 › Verification Page › verification success: src/test/models/AuthPage.ts#L189
3) [firefox] › verification.spec.ts:7:3 › Verification Page › verification success › mock the submit email verification response Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.waitForResponse: Page closed =========================== logs =========================== waiting for response "**/self-service/verification?flow=**" ============================================================ at ../../../src/test/models/AuthPage.ts:189 187 | return this.locator 188 | .page() > 189 | .waitForResponse(`**/self-service/${flow}?flow=**`) | ^ 190 | } 191 | } 192 | at ug.interceptSubmitResponse (/home/runner/work/elements/elements/src/test/models/AuthPage.ts:189:8) at ug.interceptSubmitResponse (/home/runner/work/elements/elements/src/test/models/VerificationPage.ts:134:18) at /home/runner/work/elements/elements/src/test/mock/verification.ts:63:46 at Object.VerificationSuccessTest (/home/runner/work/elements/elements/src/test/mock/verification.ts:57:11) at /home/runner/work/elements/elements/examples/react-spa/e2e/verification.spec.ts:14:5
[firefox] › verification.spec.ts:7:3 › Verification Page › verification success: examples/react-spa/e2e/verification.spec.ts#L1
3) [firefox] › verification.spec.ts:7:3 › Verification Page › verification success › mock the submit email verification response Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Pending operations: - locator.fill at ../../src/test/mock/verification.ts:66:10
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
🎭 Playwright Run Summary
18 passed (1.1m)
🎭 Playwright Run Summary
18 passed (45.0s)
🎭 Playwright Run Summary
3 flaky [firefox] › login.spec.ts:13:3 › Login Page › login with invalid credentials ─────────────────── [firefox] › registration.spec.ts:19:3 › Registration Page › registration duplicate account ───── [firefox] › verification.spec.ts:7:3 › Verification Page › verification success ──────────────── 15 passed (2.1m)

Artifacts

Produced during runtime
Name Size
nextjs-spa playwright-report Expired
428 KB
preact-spa playwright-report Expired
428 KB
react-spa playwright-report Expired
9.63 MB