You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @Smuuts , Thank you for opening an issue but this appears to be a duplicate. I am going to close this as a duplicate of cypress-io/eslint-plugin-cypress#140. Please follow that issue for updates.
Description
I get a unsafe-to-chain-command error on anything after cy.focused(). This started happening after a recent update.
URL of Issue(s)
https://docs.cypress.io/api/commands/focused
Steps to replicate
use cy.focused().anything() anywhere
"cypress": "^12.13.0",
"cypress-file-upload": "^5.0.8",
"cypress-mochawesome-reporter": "^3.4.0",
"cypress-multi-reporters": "^1.6.3",
"eslint": "^8.40.0",
"eslint-config-google": "^0.14.0",
"eslint-plugin-cypress": "^2.13.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-unicorn": "^46.0.1",
Browser
No response
Device
Additional Information
In the cy.focused() documentation (https://docs.cypress.io/api/commands/focused) it also states that:
"cy.focused() is a query, and it is safe to chain further commands."
I get the same error even when using almost the exact same examples used in the cypress documentation:
The text was updated successfully, but these errors were encountered: