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
{{ message }}
This repository was archived by the owner on Aug 6, 2025. It is now read-only.
All your favorite user-centric querying functions from @testing-library/react & @testing-library/library available from Puppeteer!
10
+
All your favorite user-centric querying functions from @testing-library/react & @testing-library/library available from Playwright!
11
+
12
+
> ⚠️ Note: this is a fork of [pptr-testing-library](https://github.com/testing-library/pptr-testing-library) modified to accomodate for some subtle API differences.
Unique methods, not part of `@testing-library/dom`
60
62
61
-
-`getDocument(page: puppeteer.Page): ElementHandle` - get an ElementHandle for the document
63
+
-`getDocument(page: playwright.Page): ElementHandle` - get an ElementHandle for the document
62
64
-`wait(conditionFn: () => {}): Promise<{}>` - wait for the condition to not throw (wrapper around `waitForExpect`)
63
65
64
66
---
@@ -95,17 +97,19 @@ Unique methods, not part of `@testing-library/dom`
95
97
96
98
## Known Limitations
97
99
98
-
-`waitForElement` method is not exposed. Puppeteer has its own set of wait utilities that somewhat conflict with the style used in `@testing-library/dom`. See [#3](https://github.com/testing-library/pptr-testing-library/issues/3).
99
-
-`fireEvent` method is not exposed, use puppeteer's built-ins instead.
100
+
-`waitForElement` method is not exposed. Playwright has its own set of wait utilities that somewhat conflict with the style used in `@testing-library/dom`. See [#3](https://github.com/testing-library/playwright-testing-library/issues/3).
101
+
-`fireEvent` method is not exposed, use Playwright's built-ins instead.
100
102
-`expect` assertion extensions are not available.
101
103
102
104
## Special Thanks
103
105
104
-
[@testing-library/dom](https://github.com/testing-library/dom-testing-library) of course!
0 commit comments