Skip to content

Commit

Permalink
chore: revert merge for semantic release (#143)
Browse files Browse the repository at this point in the history
* Revert "add test to ensure 'focus' does fail, in addition to 'focused' passing"

This reverts commit 0c525e1.

* Revert "fix(pencil): illustrate the false positive of 'focus' regex matching 'focused'"

This reverts commit 4eedc6b.
  • Loading branch information
AtofStryker authored Sep 18, 2023
1 parent d5b89f4 commit 0a3bd81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion lib/rules/unsafe-to-chain-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const unsafeToChainActions = [
'check',
'dblclick',
'each',
'focus$',
'focus',
'rightclick',
'screenshot',
'scrollIntoView',
Expand Down
9 changes: 0 additions & 9 deletions tests/lib/rules/unsafe-to-chain-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ ruleTester.run('action-ends-chain', rule, {
code: 'cy.get("new-todo").type("todo A{enter}"); cy.get("new-todo").type("todo B{enter}"); cy.get("new-todo").should("have.class", "active");',
parserOptions,
},
{
code: 'cy.focused().should("be.visible");',
parserOptions,
},
],

invalid: [
Expand All @@ -31,11 +27,6 @@ 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 0a3bd81

Please sign in to comment.