You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// query methods are added directly to prototype of ElementHandle
51
+
const$form=await$document.getByTestId('my-form')
47
52
// ...
48
53
```
49
54
50
55
## API
51
56
52
-
Puppeteer-specific methods
57
+
Unique methods, not part of `dom-testing-library`
53
58
54
59
-`getDocument(page: puppeteer.Page): ElementHandle` - get an ElementHandle for the document
55
60
@@ -88,13 +93,20 @@ Puppeteer-specific methods
88
93
89
94
## Known Limitations
90
95
91
-
-`waitForElement` method is not exposed. Puppeteer has its own set of wait utilities that somewhat conflict with the style used in `dom-testing-library`. See [issue](https://github.com/patrickhulce/pptr-testing-library/issues/3).
96
+
-`waitForElement` method is not exposed. Puppeteer has its own set of wait utilities that somewhat conflict with the style used in `dom-testing-library`. See [#3](https://github.com/patrickhulce/pptr-testing-library/issues/3).
92
97
-`fireEvent` method is not exposed, use puppeteer's built-ins instead.
98
+
- Query methods rely on the context and don't support destructuring. See [#4](https://github.com/patrickhulce/pptr-testing-library/issues/4).
99
+
-`expect` assertion extensions are not available.
93
100
94
101
## Special Thanks
95
102
96
103
[dom-testing-library](https://github.com/kentcdodds/dom-testing-library) of course!
0 commit comments