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: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,7 @@ To enable this configuration use the `extends` property in your
143
143
|[no-manual-cleanup](docs/rules/no-manual-cleanup.md)| Disallow the use of `cleanup`|||
144
144
|[no-wait-for-empty-callback](docs/rules/no-wait-for-empty-callback.md)| Disallow empty callbacks for `waitFor` and `waitForElementToBeRemoved`|||
145
145
|[prefer-explicit-assert](docs/rules/prefer-explicit-assert.md)| Suggest using explicit assertions rather than just `getBy*` queries |||
146
-
|[prefer-find-by](docs/rules/prefer-find-by.md)| Suggest using `findBy*` methods instead of the `waitFor` + `getBy` queries |![recommended-badge][]![angular-badge][]![react-badge][]![vue-badge][]||
146
+
|[prefer-find-by](docs/rules/prefer-find-by.md)| Suggest using `findBy*` methods instead of the `waitFor` + `getBy` queries |![recommended-badge][]![angular-badge][]![react-badge][]![vue-badge][]|![fixable-badge][]|
147
147
|[prefer-presence-queries](docs/rules/prefer-presence-queries.md)| Enforce specific queries when checking element is present or not |||
148
148
|[prefer-screen-queries](docs/rules/prefer-screen-queries.md)| Suggest using screen while using queries |||
149
149
|[prefer-wait-for](docs/rules/prefer-wait-for.md)| Use `waitFor` instead of deprecated wait methods ||![fixable-badge][]|
* Reports the invalid usage of wait* plus getBy/QueryBy methods and automatically fixes the scenario
39
+
* @param {TSESTree.CallExpression} node - The CallExpresion node that contains the wait* method
40
+
* @param {'findBy' | 'findAllBy'} replacementParams.queryVariant - The variant method used to query: findBy/findByAll.
41
+
* @param {string} replacementParams.queryMethod - Suffix string to build the query method (the query-part that comes after the "By"): LabelText, Placeholder, Text, Role, Title, etc.
42
+
* @param {Array<TSESTree.Expression>} replacementParams.callArguments - Array of argument nodes which contain the parameters of the query inside the wait* method.
43
+
* @param {string=} replacementParams.caller - the variable name that targets screen or the value returned from `render` function.
0 commit comments