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
feat: add traverseShadowRoots option to toMatch (#463)
* feat: adding a new matcher for shadow DOM toMatch
* fix: fixing incorrect page setup
* fix: rewording export in toMatchInShadow
* fix: moving toMatchInShadow into toMatch
Copy file name to clipboardExpand all lines: packages/expect-puppeteer/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -164,6 +164,7 @@ Expect a text or a string RegExp to be present in the page or element.
164
164
-`raf` - to constantly execute `pageFunction` in `requestAnimationFrame` callback. This is the tightest polling mode which is suitable to observe styling changes.
165
165
-`mutation` - to execute `pageFunction` on every DOM mutation.
166
166
-`timeout` <[number]> maximum time to wait for in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can be changed by using the [page.setDefaultTimeout(timeout)](#pagesetdefaulttimeouttimeout) method.
167
+
-`traverseShadowRoots`<[boolean]> Whether shadow roots should be traversed to find a match.
0 commit comments