Skip to content

fix: duplicate hidden input fields on auth-code-section #212

fix: duplicate hidden input fields on auth-code-section

fix: duplicate hidden input fields on auth-code-section #212

Triggered via pull request September 28, 2023 06:42
Status Success
Total duration 6m 13s
Artifacts 3

playwright-e2e.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error, 1 warning, and 3 notices
[firefox] › registration.spec.ts:19:3 › Registration Page › registration duplicate account: src/test/models/AuthPage.ts#L60
1) [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:60 58 | for (const key in this.traits) { 59 | if (this.traits[key].type === "input") { > 60 | await this.formFields[key].fill(this.traits[key].value) | ^ 61 | } else if (this.traits[key].type === "checkbox") { 62 | await this.formFields[key].click() 63 | } at ag.submitForm (/home/runner/work/elements/elements/src/test/models/AuthPage.ts:60: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
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 (57.5s)
🎭 Playwright Run Summary
18 passed (42.1s)
🎭 Playwright Run Summary
1 flaky [firefox] › registration.spec.ts:19:3 › Registration Page › registration duplicate account ───── 17 passed (56.7s)

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
2.66 MB