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
(expect-webdriverio): add string options to verify text at the start, end and index and to replace the actual value (#1295)
* (expect-webdriverio): add string options to verify text at the start, end and index
* (expect-webdriverio): add replace option, update docs
* (expect-webdriverio): expand replacer, add option to add multiple replacers
* (expect-webdriverio): update API.md
* (expect-webdriverio): support object and array replacers
* (expect-webdriverio): update API.md
* (expect-webdriverio): change Object to Array structure
Copy file name to clipboardExpand all lines: docs/API.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,8 +50,12 @@ This option can be applied in addition to the command options when strings are b
50
50
| ---- | ---- | ------- |
51
51
| <code><var>ignoreCase</var></code> | boolean | apply `toLowerCase` to both actual and expected values |
52
52
| <code><var>trim</var></code> | boolean | apply `trim` to actual value |
53
+
| <code><var>replace</var></code> | Replacer or Record<string, Replacer> | replace parts of the actual value that match the string/RegExp with the next string |
53
54
| <code><var>containing</var></code> | boolean | expect actual value to contain expected value, otherwise strict equal. |
54
55
| <code><var>asString</var></code> | boolean | might be helpful to force converting property value to string |
56
+
| <code><var>atStart</var></code> | boolean | expect actual value to start with the expected value |
57
+
| <code><var>atEnd</var></code> | boolean | expect actual value to end with the expected value |
58
+
| <code><var>atIndex</var></code> | number | expect actual value to have the expected value at the given index |
0 commit comments