-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Labels
Description
Puppeteer has its own set of waitForSelector
methods so this requires some thought. My inclination is to just better document how to do the same thing with puppeteer than match exact API
Proposals
// Use puppeteer but expose dom-testing-library globally
await state.page.waitFor(() => __dom_testing_library__.queryByTestId('foo'), {polling: 'mutation'})
// Tell people to stick with `wait`
const {queries, wait} = require('pptr-testing-library')
await wait(() => queries.getByTestId($document, 'foo'))
akahn87, aslushnikov, marcusstenbeck and abraham