javascript
javascript copied to clipboard
feat(test): Add Clerk Elements E2E
Description
This PR adds Playwright E2E tests for Clerk Elements. Included are:
next-sign-in.test.ts- Mirrors the existingsign-in-flow.test.tsfile to assert that one can successfully sign innext-sign-up.test.ts- Mirrors the existingsign-up-flow.test.tsfile to assert that one can successfully sign upotp.test.ts- Assert that<Input type="otp" />works correctlyvalidate-password.test.ts- Assert that<Input type="password" validatePassword />works correctly
Moreover, this PR also fixes this Faker.js deprecation message:
[@faker-js/faker]: faker.phone.number(format) is deprecated since v8.1 and will be removed in v9.0. Please use faker.phone.number() instead.
This issue explains how to use replaceSymbolWithNumber but that's also deprecated and its docs explain what to use instead.
Fixes SDK-1721 Fixes SDK-1382
Checklist
- [x]
npm testruns as expected. - [x]
npm run buildruns as expected. - [ ] (If applicable) JSDoc comments have been added or updated for any package exports
- [ ] (If applicable) Documentation has been updated
Type of change
- [ ] 🐛 Bug fix
- [ ] 🌟 New feature
- [ ] 🔨 Breaking change
- [ ] 📖 Refactoring / dependency upgrade / documentation
- [x] other: E2E tests
🦋 Changeset detected
Latest commit: ff3e23f1d10eeadf61079ae63030727339b8a31b
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| @clerk/elements | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR