Documentation says it's unsafe to chain after .clear() but has an example with .clear().type("xyz") #5374
Labels
content: rewrite
triaged
Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.
Subject
chaining after .clear()
Description
The documentation (and the linting) says, that it is unsafe to chain commands after .clear().
https://docs.cypress.io/api/commands/clear#__docusaurus_skipToContent_fallback
But the same documentation has an example (https://docs.cypress.io/api/commands/clear#No-Args) where it chains a .type() command after the .clear(), which is a little confusing and inconsistent.
Is it safe to chain a type after a clear?
The text was updated successfully, but these errors were encountered: