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