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

add "be.focused" and "have.focus" to assertions (#3219) #4274

Merged
merged 2 commits into from
May 21, 2019
Merged

Conversation

kuceb
Copy link
Contributor

@kuceb kuceb commented May 21, 2019

this should have been part of 3.3.0, but was left out.

  • add "be.focused" to chai_jquery

  • add type definitions

  • refactor assertion to use jquery assertion

fix #4265
fix #97

kuceb and others added 2 commits April 30, 2019 21:39
* add "be.focused" to chai_jquery

* add comment explaining the mess

* add type definitions

* refactor assertion to use jquery assertion

* remove trailing whitespace

* add test for multiple elements, update typedefs

* fix failing tests: not.be.visible -> not.exist

* allow should(not.be.visible) for failed selectors

* remove unrelated visibility changes

* extract only focus assertion

* Revert "Merge remote-tracking branch 'origin/develop' into issue-97-focus-assertion"

This reverts commit b401c32, reversing
changes made to ab14758.

* force jquery to use custom focus pseudo selector

* only force custom matchers for focus selectors

* rewrote matchesSelector wrap code

* add lodash

* Merge in origin/develop

* changes on 3.3.0


Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
@kuceb kuceb requested a review from brian-mann May 21, 2019 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants