feat: passwordless strategy (#170) #284
Annotations
1 error, 1 warning, and 3 notices
Run examples/react-spa tests:
src/test/models/AuthPage.ts#L60
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: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/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
|
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/
|
Run examples/nextjs-spa tests
18 passed (36.8s)
|
Run examples/preact-spa tests
18 passed (25.3s)
|
Run examples/react-spa tests
1 flaky
[firefox] › login.spec.ts:13:3 › Login Page › login with invalid credentials ───────────────────
17 passed (32.9s)
|
The logs for this run have expired and are no longer available.
Loading