Skip to content

Commit 0c525e1

Browse files
committed
add test to ensure 'focus' does fail, in addition to 'focused' passing
1 parent 4eedc6b commit 0c525e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ ruleTester.run('action-ends-chain', rule, {
3131
parserOptions,
3232
errors,
3333
},
34+
{
35+
code: 'cy.get("new-todo").focus().should("have.class", "active");',
36+
parserOptions,
37+
errors,
38+
},
3439
{
3540
code: 'cy.get("new-todo").customType("todo A{enter}").customClick();',
3641
parserOptions,

0 commit comments

Comments
 (0)