File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
docs/pptr-testing-library Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ npm install --save-dev puppeteer pptr-testing-library
1616
1717``` js
1818const puppeteer = require (' puppeteer' )
19- const { getDocument , queries , wait } = require (' pptr-testing-library' )
19+ const { getDocument , queries , waitFor } = require (' pptr-testing-library' )
2020
2121const { getByTestId , getByLabelText } = queries
2222
@@ -32,7 +32,7 @@ const $email = await getByLabelText($form, 'Email')
3232// interact with puppeteer like usual
3333await $email .type (' pptr@example.com' )
3434// waiting works too!
35- await wait (() => getByText (' Loading...' ))
35+ await waitFor (() => getByText (' Loading...' ))
3636```
3737
3838A little too un-puppeteer for you? You can attach all the ` DOM Testing Library `
You can’t perform that action at this time.
0 commit comments