pptr-testing-library
pptr-testing-library copied to clipboard
Support global timeout
Added support for a global timeout configuration, follows the specification of asyncUtilTimeout
.
In order to achieve this goal, we had to manipulate the "dom-testing-library.js" file (similar to how it's being done today to support testIdAttribute
configuration), and replace all occurrences of asyncUtilTimeout
with our config. We used a regex to match floating-point numbers with an optional exponent, because esbuild formats "1000" to "1e3".
Moreover, we add & change tests so we can verify the global timeout works with this library waitFor
method, and also with the findBy*
query from the "dom-testing-library".
Relates to ticket #71