Maciej Jastrzebski
d1b5886081
chore: workaround for User Event press race condition in tests ( #1736 )
2025-01-14 12:52:47 +01:00
Maciej Jastrzebski
9efe13e35c
fix: expose concurrent root in render hook ( #1734 )
2025-01-14 12:26:15 +01:00
Maciej Jastrzebski
692c55b3ba
refactor: format element & debug ( #1730 )
2025-01-13 10:24:30 +01:00
Maciej Jastrzebski
d21dbb40a0
sort imports ( #1729 )
2025-01-08 22:38:02 +01:00
Maciej Jastrzebski
1219944bbf
chore: ESLint 9 ( #1728 )
2025-01-08 22:30:01 +01:00
Maciej Jastrzebski
b4d594228c
chore: better logger ( #1727 )
2025-01-08 10:03:21 +01:00
Maciej Jastrzebski
83716c233b
Merge branch 'main' into v13
...
# Conflicts:
# examples/basic/jest-setup.ts
# examples/basic/package.json
# examples/basic/yarn.lock
# examples/cookbook/package.json
# examples/cookbook/yarn.lock
# package.json
2024-11-27 10:24:18 +01:00
MD. MOHIBUR RAHMAN
1973cbcaf9
feat: add skip blur option ( #1704 )
...
* feat: add skip blur option
* fix: skipBlur option disables both endEditing and blur
* docs: add skipBlur option to doc
* test: add unit testing for skipBlur
* docs: tweak
* docs: tweaks
* chore: fix lint
---------
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com >
2024-11-27 09:47:29 +01:00
Maciej Jastrzebski
2c52201ab1
chore: React Native 0.77 support ( #1711 )
...
* chore: update react native
* chore: fix tests
2024-11-27 09:42:48 +01:00
Maciej Jastrzebski
2670b59f10
refactor(v13): cleanup existing code ( #1701 )
...
* refactor: cleanu existing code
* chore: fix lint
2024-11-07 10:09:05 +01:00
Maciej Jastrzebski
83cafe456a
refactor(v13): a11y label helpers ( #1666 )
2024-11-05 09:14:31 +01:00
Maciej Jastrzebski
5a10b312e2
chore: change tsx to ts
2024-11-05 09:03:57 +01:00
Maciej Jastrzebski
13bc78a504
refactor(v13): remove detect host component names ( #1697 )
2024-11-04 23:20:42 +01:00
Maciej Jastrzebski
7905bb5979
Merge branch 'main' into v13
...
# Conflicts:
# package.json
2024-10-31 09:42:58 +01:00
Maciej Jastrzebski
5de87900ce
fix: press event order ( #1696 )
2024-10-30 21:19:42 +01:00
Maciej Jastrzebski
e90360bfde
refactor(v13): use react act if available ( #1695 )
...
* chore: tweak peer deps limits
* chore: sync act implementation with RTL
* chore: update yarn.lock
2024-10-25 11:01:13 +02:00
Maciej Jastrzebski
383c241d2e
feat(v13): enable concurrent rendering by default ( #1692 )
...
* feat!: enable concurrent rendering by default
* chore: tweaks
2024-10-25 10:02:02 +02:00
Maciej Jastrzebski
3abeac3eb4
Merge branch 'main' into v13
...
# Conflicts:
# jest-setup.ts
2024-10-25 09:45:14 +02:00
Maciej Jastrzebski
f231ea30b2
feat: option for enabling concurrent rendering ( #1685 )
2024-10-25 09:06:41 +02:00
Maciej Jastrzebski
7455b21618
feat: automatically extend matchers ( #1684 )
2024-10-24 10:30:42 +02:00
Maciej Jastrzębski
c7f9132c28
Merge branch 'main' into v13
...
# Conflicts:
# package.json
# src/__tests__/__snapshots__/render-debug.test.tsx.snap
# yarn.lock
2024-10-24 09:55:22 +02:00
Maciej Jastrzebski
a60ce287e1
refactor: 0.76 stable tweaks ( #1682 )
2024-10-24 09:36:26 +02:00
Maciej Jastrzebski
0e8555066e
chore: React Native 0.76 support ( #1664 )
2024-10-18 11:10:22 +02:00
Maciej Jastrzebski
7ba47b812d
fix: use native state across the queries and matchers ( #1667 )
...
* fix: improve text input value getting in type, clear, paste
* chore: migrate other use-cases to use `getTextInputValue`
* chore: add relevant tests
* refactor: self code review
* refactor: self code review
2024-09-12 11:54:37 +02:00
Maciej Jastrzebski
e6d06a7aaa
Merge branch 'main' into v13
...
# Conflicts:
# src/queries/__tests__/accessibility-state.test.tsx
2024-09-12 09:30:11 +02:00
Maciej Jastrzebski
04c7ee4080
feat: support Image with alt prop as label ( #1665 )
...
* refactor: detect Image host component name
* feat: support Image alt prop in *ByLabelText
* feat: support *ByRole queries
* feat: support toHaveAccessibleName matcher
* chore: fix typecheck
* refactor: self code review
* refactor: adjust finding to experiment results
* chore: add missing tests
* refactor: self code review
* refactor: self code review
* refactor: self-code review
2024-09-12 09:08:10 +02:00
Maciej Jastrzebski
f69d1d5a89
refactor: simplify native state management ( #1662 )
...
* refactor: improve native state management
* feat: add fireEvent.scroll support for scroll native events
2024-09-09 11:44:46 +02:00
Maciej Jastrzebski
856332cc5b
feat: support Switch checked state ( #1657 )
2024-09-06 16:43:59 +02:00
Maciej Jastrzebski
bf7ea4c7f4
refactor: scroll view native state ( #1661 )
...
* refactor: move scroll state into native state
* refactor: simplify types
* refactor: renaming
2024-09-06 16:42:06 +02:00
Maciej Jastrzębski
a3e1c5aeff
Merge branch 'main' into v13
...
# Conflicts:
# src/queries/__tests__/accessibility-state.test.tsx
# yarn.lock
2024-09-05 10:30:22 +02:00
dependabot[bot]
345be3fe0a
chore(deps-dev): bump @callstack/eslint-config from 14.2.0 to 15.0.0 ( #1650 )
...
* chore(deps-dev): bump @callstack/eslint-config from 14.2.0 to 15.0.0
Bumps [@callstack/eslint-config](https://github.com/callstack/eslint-config-callstack ) from 14.2.0 to 15.0.0.
- [Release notes](https://github.com/callstack/eslint-config-callstack/releases )
- [Commits](https://github.com/callstack/eslint-config-callstack/compare/v14.2.0...v15.0.0 )
---
updated-dependencies:
- dependency-name: "@callstack/eslint-config"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* chore: fix lint issues
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com >
2024-09-03 10:04:34 +02:00
Maciej Jastrzebski
22ec13d0e5
refactor: accessibility handling ( #1658 )
...
* refactor: improve code structure
* refactor: more tweaks
2024-09-03 09:41:47 +02:00
Maciej Jastrzebski
4112abcf0a
feat: simulated native TextInput state ( #1653 )
...
* feat: basic text input state
* refactor: self code review
* refactor: code review changes
2024-09-03 09:15:14 +02:00
Maciej Jastrzebski
b6c33d0082
refactor: remove real timers warning in User Event ( #1654 )
...
* refactor: remove real timers warning in User Event
* chore: tweak docs
2024-08-28 10:02:19 +02:00
Maciej Jastrzebski
38bceed25b
feat: user event paste ( #1646 )
2024-08-16 16:44:58 +02:00
Maciej Jastrzebski
f0df2994df
feat: remove 'textInput' event from UserEvent type() ( #1645 )
2024-08-13 20:30:48 +02:00
Maciej Jastrzebski
b5cfb98854
[v13] chore: remove debug shallow ( #1601 )
2024-08-12 22:51:23 +02:00
Maciej Jastrzebski
b797cf4cc5
[v13] chore: remove react 16 & 17 code ( #1602 )
...
* chore: remove React 16 & 17 code
chore: remove more
chore: react version 18.3.1
docs: migration guide
* refactor: finish merge
2024-08-12 22:51:23 +02:00
Maciej Jastrzebski
398f09a1c9
[v13] chore: remove deprecated stuff ( #1603 )
...
* chore: remove flush microtask legacy
* chore: remove deprecated *ByAccessibilityState, *ByAccessibilityValue queries
* chore: add docs
* docs: add docs
2024-08-12 22:50:25 +02:00
Maciej Jastrzebski
430213faa4
chore: check React Native 0.75 compatibility & deps upgrade ( #1643 )
2024-08-12 22:43:19 +02: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
Maciej Jastrzebski
be31579991
fix: toBeVisible edge case for style values ( #1640 )
2024-07-26 09:32:22 +02:00
Artem S
76de7d2b2e
fix: immediate setState in useEffect for unstable_validateStringsRenderedWithinText ( #1612 )
...
* fix: immediate setState in useEffect for unstable_validateStringsRenderedWithinText
* refactor: tweaks
---------
Co-authored-by: Maciej Jastrzębski <mdjastrzebski@gmail.com >
2024-05-23 12:17:30 +02:00
Maciej Jastrzebski
9488dcc622
feat: by role ts hints ( #1596 )
...
* feat: autocomplete
* refactor: cleanup
* chore: fix typos
2024-04-29 22:30:01 +02:00
Maciej Jastrzebski
16b9e493f7
refactor: pass through Test Renderer options ( #1594 )
2024-04-26 23:14:43 +02:00
Maciej Jastrzebski
ec032b0fc2
fix: proper act usage ( #1592 )
...
* fix: use proper act
# Conflicts:
# src/render-act.ts
* fix: user event missing act on min press duration
* chore: add button test
* chore: spellcheck
2024-04-26 22:55:47 +02:00
Maciej Jastrzebski
f7e3b1a907
fix: expose common base synthetic event methods ( #1589 )
...
* fix: add stup base synthetic event methods
* chore: update snapshots
* refactor: self code review
* refactor: improvements
* chore: add test
2024-04-26 21:38:32 +02:00
Maciej Jastrzebski
73bef94a4b
docs: improve api docs ( #1590 )
2024-04-25 14:37:01 +02:00
Maciej Jastrzebski
b2a29b171a
fix: find by timeout with detached screen ( #1576 )
...
* fix: improve error findBy* error message when screen is not beign attached.
* fix: detect detached screen and display proper error message.
* chore: improve error message
* chore: update link
* chore: update snapshots
2024-03-28 18:14:36 +01:00
Maciej Jastrzebski
9b252f8b60
docs: update docs about eslint rule ( #1578 )
...
* fix: relevant issues indicated by the eslint rule
* chore: rename file
* docs: move eslint to getting-started; cleanup legacy stuff
2024-03-28 15:38:12 +01:00