Skip to content

Commit 0a3bd81

Browse files
authored
chore: revert merge for semantic release (#143)
* 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.
1 parent d5b89f4 commit 0a3bd81

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const unsafeToChainActions = [
1919
'check',
2020
'dblclick',
2121
'each',
22-
'focus$',
22+
'focus',
2323
'rightclick',
2424
'screenshot',
2525
'scrollIntoView',

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ ruleTester.run('action-ends-chain', rule, {
1414
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");',
1515
parserOptions,
1616
},
17-
{
18-
code: 'cy.focused().should("be.visible");',
19-
parserOptions,
20-
},
2117
],
2218

2319
invalid: [
@@ -31,11 +27,6 @@ ruleTester.run('action-ends-chain', rule, {
3127
parserOptions,
3228
errors,
3329
},
34-
{
35-
code: 'cy.get("new-todo").focus().should("have.class", "active");',
36-
parserOptions,
37-
errors,
38-
},
3930
{
4031
code: 'cy.get("new-todo").customType("todo A{enter}").customClick();',
4132
parserOptions,

0 commit comments

Comments
 (0)