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
* Reports the invalid usage of wait* plus getBy/QueryBy methods and automatically fixes the scenario
75
-
* @param {TSESTree.CallExpression} node - The CallExpresion node that contains the wait* method
76
-
* @param {'findBy' | 'findAllBy'} replacementParams.queryVariant - The variant method used to query: findBy/findByAll.
77
-
* @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.
78
-
* @param {ReportFixFunction} replacementParams.fix - Function that applies the fix to correct the code
75
+
* @param node - The CallExpresion node that contains the wait* method
76
+
* @param replacementParams - Object with info for error message and autofix:
77
+
* @param replacementParams.queryVariant - The variant method used to query: findBy/findAllBy.
78
+
* @param replacementParams.prevQuery - The query originally used inside `waitFor`
79
+
* @param replacementParams.queryMethod - Suffix string to build the query method (the query-part that comes after the "By"): LabelText, Placeholder, Text, Role, Title, etc.
80
+
* @param replacementParams.waitForMethodName - wait for method used: waitFor/wait/waitForElement
81
+
* @param replacementParams.fix - Function that applies the fix to correct the code
0 commit comments