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
Copy file name to clipboardExpand all lines: packages/expect-puppeteer/README.md
+18-19Lines changed: 18 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Modify your Jest configuration:
24
24
25
25
Writing integration test is very hard, especially when you are testing a Single Page Applications. Data are loaded asynchronously and it is difficult to know exactly when an element will be displayed in the page.
26
26
27
-
[Puppeteer API](https://pptr.dev/api) is great, but it is low level and not designed for integration testing.
27
+
[Puppeteer API](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md) is great, but it is low level and not designed for integration testing.
-`selector` <[string]|[MatchSelector](#MatchSelector)> A [selector] or a [MatchSelector](#MatchSelector) to match field
114
+
-`instance` <[Page]|[ElementHandle]> Context
115
+
-`selector` <[string]> A [selector] to match field
116
116
-`value` <[string]> Value to fill
117
117
-`options` <[Object]> Optional parameters
118
118
-`delay` <[number]> delay to pass to [the puppeteer `element.type` API](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#elementhandletypetext-options)
-`selector` <[string]|[MatchSelector](#MatchSelector)> A [selector] or a [MatchSelector](#MatchSelector) to match form
128
+
-`instance` <[Page]|[ElementHandle]> Context
129
+
-`selector` <[string]> A [selector] to match form
130
130
-`values` <[Object]> Values to fill
131
131
-`options` <[Object]> Optional parameters
132
132
-`delay` <[number]> delay to pass to [the puppeteer `element.type` API](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#elementhandletypetext-options)
-`matcher` <[string]|[RegExp]> A text or a RegExp to match in page
147
147
-`options` <[Object]> Optional parameters
148
148
-`polling` <[string]|[number]> An interval at which the `pageFunction` is executed, defaults to `raf`. If `polling` is a number, then it is treated as an interval in milliseconds at which the function would be executed. If `polling` is a string, then it can be one of the following values:
-`selector` <[string]|[MatchSelector](#MatchSelector)> A [selector] or a [MatchSelector](#MatchSelector) to match element
165
+
-`instance` <[Page]|[ElementHandle]> Context
166
+
-`selector` <[string]> A [selector] to match element
167
167
-`options` <[Object]> Optional parameters
168
168
-`polling` <[string]|[number]> An interval at which the `pageFunction` is executed, defaults to `raf`. If `polling` is a number, then it is treated as an interval in milliseconds at which the function would be executed. If `polling` is a string, then it can be one of the following values:
169
169
-`raf` - to constantly execute `pageFunction` in `requestAnimationFrame` callback. This is the tightest polling mode which is suitable to observe styling changes.
* fix types resolution when importing jest types from @jest/globals ([#602](https://github.com/argos-ci/jest-puppeteer/issues/602)) ([e5b2e1a](https://github.com/argos-ci/jest-puppeteer/commit/e5b2e1a7c0282aba496ffe2806201778b84a96fc))
0 commit comments