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
See [dom-testing-libary](https://github.com/kentcdodds/dom-testing-library#usage) API for more. All `get*`/`query*`methods are supported.
52
+
Puppeteer-specific methods
53
53
54
54
-`getDocument(page: puppeteer.Page): ElementHandle` - get an ElementHandle for the document
55
-
-`extendObjectWithTestingUtils(handle: ElementHandle): ElementHandle & TestingUtils` - extend the input object with
56
-
-`queries: TestingUtils` - the query subset of `dom-testing-library` exports
55
+
56
+
---
57
+
58
+
[dom-testing-libary API](https://github.com/kentcdodds/dom-testing-library#usage). All `get*`/`query*` methods are supported.
59
+
60
+
-`getQueriesForElement(handle: ElementHandle): ElementHandle & QueryUtils` - extend the input object with the query API and return it
61
+
-`wait(conditionFn: () => {}): Promise<{}>` - wait for the condition to not throw
62
+
-`getNodeText(handle: ElementHandle): Promise<string>` - get the text content of the element
63
+
-`queries: QueryUtils` - the query subset of `dom-testing-library` exports
57
64
-`queryByPlaceholderText`
58
65
-`queryAllByPlaceholderText`
59
66
-`getByPlaceholderText`
@@ -79,6 +86,11 @@ See [dom-testing-libary](https://github.com/kentcdodds/dom-testing-library#usage
79
86
-`getByTitle`
80
87
-`getAllByTitle`
81
88
89
+
## Known Limitations
90
+
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).
92
+
-`fireEvent` method is not exposed, use puppeteer's built-ins instead.
93
+
82
94
## Special Thanks
83
95
84
96
[dom-testing-library](https://github.com/kentcdodds/dom-testing-library) of course!
0 commit comments