fix: button with formnovalidate (#152) #222
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
1 error, 1 warning, and 3 notices
[firefox] › login.spec.ts:13:3 › Login Page › login with invalid credentials:
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 sg.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
|
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.2m)
|
🎭 Playwright Run Summary
18 passed (54.5s)
|
🎭 Playwright Run Summary
1 flaky
[firefox] › login.spec.ts:13:3 › Login Page › login with invalid credentials ───────────────────
17 passed (1.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
|
2.36 MB |
|