Commit Graph

566 Commits

Author SHA1 Message Date
Michał Pierzchała 6a65ed3294 v11.0.0-rc.0 v11.0.0-rc.0 2022-07-20 14:46:15 +02:00
Maciej Jastrzebski ade9f33986 refactor: remove legacy wait for options support (#1018) 2022-07-20 14:32:37 +02:00
Maciej Jastrzebski 980b3df440 chore: reenable skipped byText tests (#1017) 2022-07-20 14:08:57 +02:00
Maciej Jastrzebski 9f3b31dd9d refactor: remove deprecated byA11yStates queries (#1015) 2022-07-20 12:33:19 +02:00
MattAgn 74318854b9 Organise a11y queries by predicate (#977)
* refactor: make Options generic type optionnal in queries

* refactor: extract byLabelText queries and its tests

* refactor: extract byA11yHint queries and its tests

* refactor: extract byRole queries and its tests

* refactor: extract byA11yState queries and its tests

* refactor: extract byA11yValue queries and its tests

* refactor: extract byA11yStates queries and its tests

* refactor: harmonize component declaration in queries testsx

* refactor: simplify error helpers in queries tests

* refactor: make error helpers more explicit

* chore: remove now unused makeA11yQueries

* refactor: rename AccessibilityStateKeyQueryParam to AccessibilityStateKeys

* refactor: rename param in a11yStates

* refactor: simplify matchObject

* refactor: fix namings in labelText

* refactor: fix namings in a11yHint

* refactor: fix queryAll namings'

* refactor: fix some namings in a11yState

* refactor: fix some namings in role

* refactor: fix some namings in a11yValue

* refactor: extract matchStringValue

* refactor: extract matchObject

* refactor: extract matchArrayValue

* test: add tests for the matchers

* refactor: simplify matchArrayValue to make it more explicit

* refactor: reorder imports and object keys

* refactor: update types

* refactor: small tweaks

* refactor: tweaks

* refactor: clarify matcher naming

* refactor: add missing aliases

* chore: fix ci timeout

* chore: revert jest timeout increase

* chore: revert timeout increase

* chore: fix ci tests

* chore: re-enable disabled tests

* chore: reduce jest paralelizaiton

* chore: ci tweaks

Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2022-07-20 11:37:04 +02:00
dependabot[bot] 986a02918d chore(deps): bump plist from 3.0.4 to 3.0.6 (#1011)
Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.6.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-19 12:03:08 +02:00
dependabot[bot] 40b6c9a936 chore(deps-dev): bump @babel/cli from 7.15.7 to 7.18.9 (#1014)
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.15.7 to 7.18.9.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.18.9/packages/babel-cli)

---
updated-dependencies:
- dependency-name: "@babel/cli"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-19 12:02:52 +02:00
Maciej Jastrzebski f6fe982f65 docs: create document describing act function and related errors (#969)
* docs: initial act doc

* self code review

* docs: self code review

* docs: applied type fixes

* docs: further updates
2022-07-19 12:00:03 +02:00
David Calhoun d2269f62b0 Trigger non-touch events on box-none targets (#906)
* Trigger non-touch events on box-none targets

Currently, this library disables _all_ events for a target with
`pointerEvents="box-none"`. This behavior is counter to how React Native
itself functions. This change continues to disable touch events, e.g.
`press`, for targets set to "box-none", but allows triggering non-touch
events, e.g. `layout`, `touchStart`.

* Event triggers target box-none View instead of child

This approach more closely aligns with the original failing test case.

* Rename events in test description

Attempt to better communicate the test is focused on ensuring that touch
events continue to trigger (e.g. `touchStart`), but the final event from
a touch tap does not trigger.
2022-07-19 11:56:01 +02:00
dependabot[bot] 8ce39f5314 chore(deps): bump minimist from 1.2.5 to 1.2.6 (#952)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-19 11:12:53 +02:00
Maciej Jastrzebski 91d2b83d1f chore: update deps @types for react/react-native (#1013) 2022-07-19 10:44:53 +02:00
Maciej Jastrzebski 77bf93c5ad chore: update Jest to 28 (#1008)
* chore: update jest

* refactor: pass useFakeTimer config in tests

* refactor: remove unused code

* fix jest config unable to discover babel due to rootDir change

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2022-07-19 09:53:38 +02:00
Maciej Jastrzebski bdd8f75864 chore: update react-native to 0.69.1 (#1010)
* chore: update react-native deps

* refactor: split fake timer test to make it pass
2022-07-18 18:14:58 +02:00
Maciej Jastrzebski 63f7731a17 chore: update react-native to 0.68.2 (#1009)
* chore: update react-native to 0.68.2

* chore: update workflow node version to 14

* chore: fix flow

* chote: increase jest timeout
2022-07-18 17:28:37 +02:00
Michał Pierzchała 8e0a1083a2 v10.1.1 v10.1.1 2022-06-24 15:42:48 +02:00
Philipp Kursawe a05bf4bfa3 fix: queryByText and getByText match newlines and tabs properly (#984)
Fixes #983
2022-06-24 15:42:18 +02:00
Michał Pierzchała 51cd8d0b49 v10.1.0 v10.1.0 2022-06-24 13:17:37 +02:00
Maciej Jastrzebski 5d681790bf feat: add screen API (#994)
* feature: screen

* feature: update docs

* refactor: add flow type

* docs: more

* docs: final tweaks

* test rerender

* code review changes

* alias RenderResult to RenderAPI

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2022-06-24 13:17:06 +02:00
Michał Pierzchała 1e67026d95 v10.0.1 v10.0.1 2022-06-24 12:37:00 +02:00
Michał Pierzchała 8d69c40d84 fix: bring back RenderAPI type (#1000)
* fix: bring back RenderAPI type

* add test

* fix
2022-06-24 12:36:19 +02:00
Michał Pierzchała 710855eb46 v10.0.0 v10.0.0 2022-06-23 11:15:15 +02:00
Maciej Jastrzebski 597fa3c4f8 docs: add FAQ page and native features question (#979)
* docs: add FAQ page and native features question

* docs: fixed grammar issues & added native examples
2022-06-02 14:06:43 +02:00
dependabot[bot] 3e9fdd5fec chore(deps-dev): bump @babel/preset-typescript from 7.16.0 to 7.17.12 (#988)
Bumps [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) from 7.16.0 to 7.17.12.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.17.12/packages/babel-preset-typescript)

---
updated-dependencies:
- dependency-name: "@babel/preset-typescript"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-02 14:05:43 +02:00
dependabot[bot] 728fe2988c chore(deps): bump async from 2.6.3 to 2.6.4 (#960)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-02 11:38:44 +02:00
Maciej Jastrzebski 4f7dd48073 docs: table of contents for Queries and API pages (#980)
* docs: add toc for APIs

* docs: add toc for Queries
2022-05-27 15:53:00 +02:00
rvasseur31 16bb83c78a Update ReduxIntegration.md (#976)
We will test 'AddTodo' and not 'TodoElem'
Add '.test' to the second file as well as for 'AddTodo.test.js'
2022-05-10 11:00:23 +02:00
Maciej Jastrzebski 64ff2d27c2 refactor: re-organise regular (non A11y) queries by predicate (#965)
* refactor: move queries files to queries folder

* refactor: fix import order

* refactor: extract bindByTextQueries

* refactor: extract bindByTestId, bindByDisplayValue

* refactor: extract bindByPlaceholderText

* refactor: remove findByAPI

* refactor: re-organied flow types

* refactor: migrate getByAPI & queryByAPI

* refactor: simplify query file names

* refactor: reduce external visibility

* refactor: reduce unnecessary exports

* refactor: self code review

* refactor: self code review

* refactor: move query tests to `src/queries/__tests__`

* refactor: remove removed functions errors
2022-05-04 12:08:03 +02:00
Raghavender Mylagary 256cd60a58 Fix QuestionsBoard example url (#968) 2022-05-04 11:23:43 +02:00
Michael Peyper 3fa42d5950 docs(renderHook): remove references to error and all from renderHook API (#963)
* docs(renderHook): remove references to error and all from renderHook API

* docs(renderHook): update code snippets to use TS
2022-05-03 22:14:48 +02:00
Michał Pierzchała 480a38ec72 v9.2.0 v9.2.0 2022-04-26 15:01:52 +02:00
Carlos Diaz-Padron 221486b9fc fix: include jsx/tsx in build, fix out dir in package.json (#957) 2022-04-26 14:57:50 +02:00
Pierre Zimmermann 564e99056a feat: add renderHook function (#923)
* feat: add renderHook function

* docs: add documentation on renderhook

* chore(renderHook): add flow typing

* docs: improve readability and consistency

Co-authored-by: pierrezimmermann <pierrez@nam.tech>
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2022-04-26 14:53:59 +02:00
Helena Ford c42237e42d fix(docs): links in API.md (#958)
* fix(docs): links in API.md

* Update API.md
2022-04-23 14:25:15 +02:00
Niraj Niroula 9810edf512 Update GettingStarted.md (#954)
Valid example URL
2022-04-12 16:45:25 +02:00
dependabot[bot] a542fdd0af chore(deps): bump pretty-format from 27.2.5 to 27.5.1 (#928)
Bumps [pretty-format](https://github.com/facebook/jest/tree/HEAD/packages/pretty-format) from 27.2.5 to 27.5.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v27.5.1/packages/pretty-format)

---
updated-dependencies:
- dependency-name: pretty-format
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 18:51:20 +02:00
dependabot[bot] b989d9b1bb chore(deps-dev): bump @babel/core from 7.13.8 to 7.17.8 (#943)
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.13.8 to 7.17.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.17.8/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 18:51:06 +02:00
dependabot[bot] c849274d7f chore(deps-dev): bump typescript from 4.4.4 to 4.6.3 (#942)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.4.4 to 4.6.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.4.4...v4.6.3)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 18:50:51 +02:00
Augustin Le Fèvre 1360b73295 feat(breaking): migrate Flow to TS; remove some deprecated functions and aliases (#881)
* Port types to TS

* Fix CI commands

* Fix typo in yml file

* Address PR comments

* Remove aliased accessibility queries

* Add flow types

* Update build to support TS

* Clean up removed aliased queries

* Move @babel/plugin-transform-flow-strip-types to test config

* Address PR comments

* Delete flow tests

* Retrigger pipeline

* Update src/helpers/timers.ts

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2022-03-25 16:54:30 +01:00
dependabot[bot] 08915d1488 chore(deps-dev): bump @babel/preset-flow from 7.14.5 to 7.16.7 (#893)
Bumps [@babel/preset-flow](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-flow) from 7.14.5 to 7.16.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.16.7/packages/babel-preset-flow)

---
updated-dependencies:
- dependency-name: "@babel/preset-flow"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-25 10:38:45 +01:00
dependabot[bot] 9a44cba244 chore(deps-dev): bump @testing-library/jest-native from 4.0.2 to 4.0.4 (#872)
Bumps [@testing-library/jest-native](https://github.com/testing-library/jest-native) from 4.0.2 to 4.0.4.
- [Release notes](https://github.com/testing-library/jest-native/releases)
- [Changelog](https://github.com/testing-library/jest-native/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-native/compare/v4.0.2...v4.0.4)

---
updated-dependencies:
- dependency-name: "@testing-library/jest-native"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-25 10:37:17 +01:00
dependabot[bot] e588280516 chore(deps): bump shelljs from 0.8.4 to 0.8.5 in /website (#901)
Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5.
- [Release notes](https://github.com/shelljs/shelljs/releases)
- [Changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/shelljs/shelljs/compare/v0.8.4...v0.8.5)

---
updated-dependencies:
- dependency-name: shelljs
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-25 10:37:01 +01:00
dependabot[bot] 7d4b2f3228 chore(deps): bump ajv from 6.12.2 to 6.12.6 in /website (#915)
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.12.2 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.12.2...v6.12.6)

---
updated-dependencies:
- dependency-name: ajv
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-25 10:36:51 +01:00
dependabot[bot] cb2a8a2b71 chore(deps): bump follow-redirects from 1.13.0 to 1.14.8 in /website (#916)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.13.0 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.13.0...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-25 10:36:36 +01:00
dependabot[bot] dc0303f916 chore(deps): bump url-parse from 1.5.3 to 1.5.10 in /website (#926)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.3 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.3...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-25 10:35:57 +01:00
dependabot[bot] c4b12813c7 chore(deps): bump minimist from 1.2.5 to 1.2.6 in /website (#939)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-25 10:35:42 +01:00
dependabot[bot] 17248f861e chore(deps): bump prismjs from 1.25.0 to 1.27.0 in /website (#925)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.25.0 to 1.27.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.25.0...v1.27.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-25 10:35:31 +01:00
Michał Pierzchała 2199c1db1b v9.1.0 v9.1.0 2022-03-25 10:28:10 +01:00
Pierre Zimmermann 49dbb66f8e feat: allow getByText and queryByText to find text nested in fragments (#934)
Co-authored-by: pierrezimmermann <pierrez@nam.tech>
2022-03-25 10:24:05 +01:00
George Kartalis a010ffdbca docs: fix textmatch broken link (#903)
* docs: fix textmatch broken link

* docs: fix normalization link
2022-01-20 22:00:32 +01:00
Jared Beach 6667cc2e20 feat: adds onTimeout option to waitFor (#885) 2022-01-10 13:09:24 +01:00