Skip to content

Commit

Permalink
add test to ensure 'focus' does fail, in addition to 'focused' passing
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicfraser committed Sep 15, 2023
1 parent 4eedc6b commit 0c525e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/lib/rules/unsafe-to-chain-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ ruleTester.run('action-ends-chain', rule, {
parserOptions,
errors,
},
{
code: 'cy.get("new-todo").focus().should("have.class", "active");',
parserOptions,
errors,
},
{
code: 'cy.get("new-todo").customType("todo A{enter}").customClick();',
parserOptions,
Expand Down

0 comments on commit 0c525e1

Please sign in to comment.