Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(breaking): unify wait for element signature with testing library #327

Merged

Conversation

mdjastrzebski
Copy link
Member

Summary

Renamed waitForElement to waitFor and slightly changes signature to match that of React Testing Library waitFor.

Resolves #318

Test plan

Updated all existing tests that uses waitForElement to use new new and signature.

src/helpers/a11yAPI.js Outdated Show resolved Hide resolved
@mdjastrzebski mdjastrzebski linked an issue May 18, 2020 that may be closed by this pull request
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@thymikee
Copy link
Member

Needs a rebase

mdjastrzebski and others added 3 commits May 18, 2020 16:47
* Added migration docs section

* Added to docosaurus side bar

* Updated README

* Increased async test timeout

* Update website/docs/Migration20.md

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
* Removed global `debug` functions

* Removed global `debug` from docs

* Cleanup

* Added migration section

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
…testing-library

# Conflicts:
#	typings/__tests__/index.test.tsx
#	website/docs/Migration20.md
@mdjastrzebski
Copy link
Member Author

Resolved merge conflicts

@thymikee thymikee merged commit 38792e9 into next May 18, 2020
@thymikee thymikee deleted the feature/unify-waitForElement-signature-with-testing-library branch May 18, 2020 15:49
thymikee added a commit that referenced this pull request May 28, 2020
…#327)

* Change argument to options object

* Renamed `waitForElement` to `waitFor`

* Migration guide entry

* Fixed typescript check

* Update src/helpers/a11yAPI.js

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>

* (Nearly) Empty migration doc for ver. 2.0 (#326)

* Added migration docs section

* Added to docosaurus side bar

* Updated README

* Increased async test timeout

* Update website/docs/Migration20.md

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>

* feat(breaking): remove legacy `debug` export (#328)

* Removed global `debug` functions

* Removed global `debug` from docs

* Cleanup

* Added migration section

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unify waitForElement to Testing Library signature
2 participants