Skip to content

Commit ba2bf7f

Browse files
author
Ben M
authored
Merge pull request #128 from Erik-Outreach/ewitkowski/wait-unsafe-to-chain
fix: Wait incorrectly reported as unsafe to chain
2 parents 1fdfef7 + 7c20206 commit ba2bf7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/unsafe-to-chain-command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function isRootCypress (node) {
4141

4242
function isActionUnsafeToChain (node) {
4343
// commands listed in the documentation with text: 'It is unsafe to chain further commands that rely on the subject after xxx'
44-
const unsafeToChainActions = ['blur', 'clear', 'click', 'check', 'dblclick', 'each', 'focus', 'rightclick', 'screenshot', 'scrollIntoView', 'scrollTo', 'select', 'selectFile', 'spread', 'submit', 'type', 'trigger', 'uncheck', 'wait', 'within']
44+
const unsafeToChainActions = ['blur', 'clear', 'click', 'check', 'dblclick', 'each', 'focus', 'rightclick', 'screenshot', 'scrollIntoView', 'scrollTo', 'select', 'selectFile', 'spread', 'submit', 'type', 'trigger', 'uncheck', 'within']
4545

4646
return node.callee && node.callee.property && node.callee.property.type === 'Identifier' && unsafeToChainActions.includes(node.callee.property.name)
4747
}

0 commit comments

Comments
 (0)