pptr-testing-library
pptr-testing-library copied to clipboard
puppeteer + dom-testing-library = π
The `waitFor` exported by this library does not seem to be complaint with the testing-library API, where it should return the callback's return value. In the following code, `x` will...
I'm currently looking to use this library to wrap cloudwatch synthetics use of puppeteer. To package the necessary code i'm using webpack to produce a bundle which will be provided...
What's the feasibility for creating an event wrapper that mimics the [user-event](https://github.com/testing-library/user-event) API? Not something that actually uses `user-event`, but rather makes Puppeteer event code _look_ like `user-event` code. For...
When calling the following code on windows and Mac, using different node versions, including v16: ``` import puppeteer from 'puppeteer'; import 'pptr-testing-library/extend'; it('should be titled correctly', async () => {...
I was trying to use the environment variable, DEBUG_PRINT_LIMIT, to limit the length of the HTML printed to console in case of failure. But for some reasons, the variable environment...
Before I started to use this library, I used the puppeteer method `waitForSelector` in order to find elements on a page. By default, [the timeout was set to 30 seconds](https://puppeteer.github.io/puppeteer/docs/puppeteer.page.waitforselector/#remarks)....
Added support for a global timeout configuration, follows the [specification of `asyncUtilTimeout`](https://testing-library.com/docs/dom-testing-library/api-configuration/#asyncutiltimeout). In order to achieve this goal, we had to manipulate the "dom-testing-library.js" file (similar to how it's being...
The examples donβt show any kind of test code. Like βitβ
Since the package.json specifies that the min NodeJS version is 12, I've updated the TypeScript to target es2017. The only change this has in the output is that async/await is...
Hello! π This PR fixes #1 by only copying dom-testing-library to a puppeteer execution context if it doesn't already exist. This change improves performance significantly in my benchmarks. ``` base...