Skip to content

Pr/remove default wait callback #470

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

Merged
merged 6 commits into from
Mar 7, 2020
Merged

Conversation

kentcdodds
Copy link
Member

As noted by @timdeschryver in #469 (comment) somehow the changes in this PR #461 are nowhere to be found in the beta branch. So I'm making this PR from the same branch to see if we can get them in. Very odd.

airjp73 and others added 4 commits March 4, 2020 10:49
Closes #372

BREAKING CHANGE: If you used the `selector` option in `ByLabelText` queries, then you will probably need to update that code to be able to find the label you're looking for.
Closes #376 

BREAKING CHANGE: `waitForElement` is deprecated in favor of `find*` queries or `wait`.
BREAKING CHANGE: `waitForDomChange` is deprecated in favor of `wait` 
BREAKING CHANGE: default timeout for async utilities is now 1000ms rather than 4500ms. This can be configured: https://testing-library.com/docs/dom-testing-library/api-configuration
Closes #413

BREAKING CHANGE: MutationObserver is supported by all major browsers and recent versions of JSDOM. If you need, you can create your own shim (using @sheerun/mutationobserver-shim) and attach it to the window.
BREAKING CHANGE: If you used `wait()` in the past, you now have to supply a callback. Relying on the "next tick" is an implementation detail and should be avoided in favor of explicit expecations within your wait callback.
@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 7, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 82ff08b:

Sandbox Source
compassionate-ganguly-2ib5j Configuration

@codecov
Copy link

codecov bot commented Mar 7, 2020

Codecov Report

Merging #470 into beta will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@         Coverage Diff         @@
##           beta   #470   +/-   ##
===================================
  Coverage   100%   100%           
===================================
  Files        22     22           
  Lines       419    421    +2     
  Branches    100    101    +1     
===================================
+ Hits        419    421    +2
Impacted Files Coverage Δ
src/wait.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b3487d0...82ff08b. Read the comment docs.

@kentcdodds kentcdodds merged commit 6e9e1e1 into beta Mar 7, 2020
@kentcdodds kentcdodds deleted the pr/remove-default-wait-callback branch March 7, 2020 23:03
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.

2 participants