fix: duplicate hidden input fields on auth-code-section
#212
Annotations
1 error, 1 warning, and 3 notices
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
|
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/
|
|
|
|
The logs for this run have expired and are no longer available.
Loading