feat: add two-step login card #132
Annotations
2 errors, 2 warnings, and 2 notices
packages/test/src/models/AuthPage.ts#L60
1) [firefox] › registration.spec.ts:19:3 › Registration Page › registration duplicate account ────
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=" " name="traits.email" autocomplete="email" value="[email protected]" class="ory_elements__input_field__db4loq1 ory_elements__typography__1nljf825 ory_elements__typography_type_regular__1nljf82m ory_elements__typography_size_small__1nljf828"/> aka getByTestId('registration-flow').getByTestId('node/input/traits.email').getByPlaceholder(' ')
2) <input id=":rj:" required="" type="email" placeholder=" " name="traits.email" autocomplete="email" value="[email protected]" class="ory_elements__input_field__db4loq1 ory_elements__typography__1nljf825 ory_elements__typography_type_regular__1nljf82m ory_elements__typography_size_small__1nljf828"/> aka getByTestId('asdf').getByTestId('node/input/traits.email').getByPlaceholder(' ')
Call log:
- waiting for getByTestId('registration-auth-card').locator('input[name="traits.email"]')
at ../../../packages/test/src/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 RegistrationPage.submitForm (/home/runner/work/elements/elements/packages/test/src/models/AuthPage.ts:60:36)
at /home/runner/work/elements/elements/packages/test/src/mock/registration.ts:101:30
at Object.RegistrationDuplicateAccountTest (/home/runner/work/elements/elements/packages/test/src/mock/registration.ts:90:11)
at /home/runner/work/elements/elements/examples/react-spa/e2e/registration.spec.ts:28:5
|
packages/test/src/models/AuthPage.ts#L191
1) [firefox] › registration.spec.ts:19:3 › Registration Page › registration duplicate account ────
Error: page.waitForResponse: Test ended.
=========================== logs ===========================
waiting for response "**/self-service/registration?flow=**"
============================================================
at ../../../packages/test/src/models/AuthPage.ts:191
189 | return this.locator
190 | .page()
> 191 | .waitForResponse(`**/self-service/${flow}?flow=**`)
| ^
192 | }
193 | }
194 |
at RegistrationPage.interceptSubmitResponse (/home/runner/work/elements/elements/packages/test/src/models/AuthPage.ts:191:8)
at RegistrationPage.interceptSubmitResponse (/home/runner/work/elements/elements/packages/test/src/models/RegistrationPage.ts:98:18)
at /home/runner/work/elements/elements/packages/test/src/mock/registration.ts:100:46
at Object.RegistrationDuplicateAccountTest (/home/runner/work/elements/elements/packages/test/src/mock/registration.ts:90:11)
at /home/runner/work/elements/elements/examples/react-spa/e2e/registration.spec.ts:28:5
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
|
|
|
This job succeeded
Loading