fix: CustomHref
and update react-spa example
#225
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#L65
1) [firefox] › login.spec.ts:13:3 › Login Page › login with invalid credentials › mock the submit login response
Error: locator.click: Error: strict mode violation: getByTestId('login-auth-card').locator('[type="submit"]') resolved to 6 elements:
1) <button type="submit" name="provider" value="discord" fo…>…</button> aka getByRole('button', { name: ' Sign in with Discord' })
2) <button type="submit" name="provider" value="facebook" f…>…</button> aka getByRole('button', { name: ' Sign in with Facebook' })
3) <button type="submit" value="github" name="provider" for…>…</button> aka getByRole('button', { name: ' Sign in with GitHub' })
4) <button type="submit" value="google" name="provider" for…>…</button> aka getByRole('button', { name: ' Sign in with Google' })
5) <button type="submit" name="method" value="password" cla…>Sign in</button> aka getByTestId('login-flow').getByRole('button', { name: 'Sign in' })
6) <button type="submit" name="method" value="webauthn" cla…>Sign in</button> aka getByTestId('passwordless-flow').getByRole('button', { name: 'Sign in' })
=========================== logs ===========================
waiting for getByTestId('login-auth-card').locator('[type="submit"]')
============================================================
at ../../../src/test/models/AuthPage.ts:65
63 | }
64 | }
> 65 | await this.locator.locator(buttonLocator ?? '[type="submit"]').click()
| ^
66 | }
67 |
68 | async expectFlowMessage(text: string) {
at ag.submitForm (/home/runner/work/elements/elements/src/test/models/AuthPage.ts:65:68)
at /home/runner/work/elements/elements/src/test/mock/login.ts:101:7
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.0m)
|
🎭 Playwright Run Summary
18 passed (46.1s)
|
🎭 Playwright Run Summary
1 flaky
[firefox] › login.spec.ts:13:3 › Login Page › login with invalid credentials ───────────────────
17 passed (56.9s)
|
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.39 MB |
|