Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress 3.3.0 .should('have.focus') does not work #4265

Closed
jevors opened this issue May 21, 2019 · 4 comments · Fixed by #4274
Closed

Cypress 3.3.0 .should('have.focus') does not work #4265

jevors opened this issue May 21, 2019 · 4 comments · Fixed by #4274

Comments

@jevors
Copy link

jevors commented May 21, 2019

Current behavior:

In issue #97 the behaviour for have.focus is implemented. As @bkucera described in this specific edit it should be possible to make user of .should('have.focus'). But that doesn't work with 3.3.0, usage results in:

CypressError: The chainer: 'focus' was not found. Could not build assertion.

Desired behavior:

Be able to use .should('have.focus')

Versions

Cypress: 3.3.0
Chrome: 74
Electron: 61

@kuceb
Copy link
Contributor

kuceb commented May 21, 2019

@jevors thanks for the heads up, somehow it was not actually merged from the 3.3.0 feature branch: https://github.com/cypress-io/cypress/compare/v3.3.0

@cypress-bot cypress-bot bot added the stage: needs review The PR code is done & tested, needs review label May 21, 2019
@kuceb kuceb pinned this issue May 21, 2019
@kuceb kuceb unpinned this issue May 21, 2019
@cypress-bot cypress-bot bot added stage: pending release and removed stage: needs review The PR code is done & tested, needs review labels May 21, 2019
@cypress-bot
Copy link
Contributor

cypress-bot bot commented May 21, 2019

The code for this is done in cypress-io/cypress#4274, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@verheyenkoen
Copy link
Contributor

I guess it would be useful to update the 3.3.0 changelog removing this feature.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented May 23, 2019

Released in 3.3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants