Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't chain negative `cy.should()` with a `.find()` #3917
I'm having an issue while trying to using
Steps to reproduce: (app code and test code)
I've created a repo that reproduce the issue.
You fill wind everything here Kocal/cypress-issue-should-not-have-attr@9947ed8
Well, in fact I don't know if it's really a bug or a requested feature, because the docs says:
But that would be really nice to chain on
Yeah, I think the difference is the use of 3 arguments versus 2 arguments.
This second example changes the subject to the 'data-sorted' attribute, because you can usually further chain.
I think the fact that the first example with 3 arguments is a bit weird that it returns the DOM element, but this comes directly from Chai jQuery's implementation.
We will not be changing this implementation at this time, so will close this issue. We may reconsider reopening depending on the amount of feedback wanting this feature in the future.