Commit Graph

6 Commits

Author SHA1 Message Date
Maciej Jastrzebski 1219944bbf chore: ESLint 9 (#1728) 2025-01-08 22:30:01 +01:00
Joshua Yoes 6a51a81728 fix: Respect maxLength prop in type() function (#1641)
* fix: Respect maxLength prop in type() function

This commit modifies the `type()` function to respect the `maxLength` prop of the input element. If the current text length exceeds the `maxLength` value, typing events will not be emitted. This ensures that the input value does not exceed the specified maximum length.

1. Create an input element with a `maxLength` prop.
2. Use the `type()` function to input text that exceeds the `maxLength` value.
3. Verify that the input value does not exceed the specified maximum length.
4. Check that no typing events are emitted once the `maxLength` is reached.

Additionally, see that `yarn test` passes with an additional test added to `src/user-event/type/__tests__/type.test.tsx`

* refactor: code review changes

* refactor: tweaks

* refactor: final tweaks

* refactor: final tweaks 2

* chore: tweak codecov

---------

Co-authored-by: Maciej Jastrzębski <mdjastrzebski@gmail.com>
2024-08-09 15:49:05 +02:00
Michał Pierzchała ce75f667f9 chore: switch Codecov PR comment to default behavior (#1415)
It's super annoying to get dozens of meaningless codecov notifications in my inbox every day, because of the current behavior. Switching to default to "update, if exists. Otherwise post new"

Ref: https://docs.codecov.com/docs/pull-request-comments#behavior
2023-05-31 10:12:11 +02:00
dependabot[bot] 25613807b8 chore(deps-dev): bump react and react-native (#1278)
* chore(deps-dev): bump react and react-native

Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) and [react-native](https://github.com/facebook/react-native). These dependencies needed to be updated together.

Updates `react` from 18.1.0 to 18.2.0
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v18.2.0/packages/react)

Updates `react-native` from 0.70.6 to 0.71.0
- [Release notes](https://github.com/facebook/react-native/releases)
- [Changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react-native/compare/v0.70.6...v0.71.0)

---
updated-dependencies:
- dependency-name: react
  dependency-type: direct:development
  update-type: version-update:semver-minor
- dependency-name: react-native
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: update snapshots

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maciej Jastrzębski <mdjastrzebski@gmail.com>
2023-01-18 13:16:08 +01:00
Maciej Jastrzebski c90d0ee6ee chore: migrate CI to GH actions (core checks) (#1280) 2023-01-18 10:15:37 +01:00
Jan Jaworski 8e5c9f9e4f chore: add codecov (#1203)
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2022-10-31 09:35:41 +01:00