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

feat: remove deprecation warning from isVisible method #1675

Merged
merged 1 commit into from Sep 8, 2020

Conversation

xanf
Copy link
Contributor

@xanf xanf commented Sep 1, 2020

Related issue: #1532

This PR removes deprecation from isVisible method since this method is expected to be available for testing v-show directive
Logic of method is ported from jest-dom implementation (obviously we can't rely on getComputedStyle so we do not test CSS-based visibility)

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

@afontcu
Copy link
Member

afontcu commented Sep 3, 2020

Looks good – I guess we should update https://vue-test-utils.vuejs.org/upgrading-to-v1/#isvisible too?

@xanf xanf force-pushed the xanf-undeprecate-is-visible branch from 4de4f22 to e92fde9 Compare September 3, 2020 08:02
@xanf
Copy link
Contributor Author

xanf commented Sep 3, 2020

Looks good – I guess we should update https://vue-test-utils.vuejs.org/upgrading-to-v1/#isvisible too?

Great catch, fixed!

@xanf xanf force-pushed the xanf-undeprecate-is-visible branch from e92fde9 to 2600f64 Compare September 3, 2020 08:11
update `isVisible` logic to match implementation in `jest-dom`
@xanf xanf force-pushed the xanf-undeprecate-is-visible branch from 2600f64 to 705701f Compare September 3, 2020 08:23
@lmiller1990 lmiller1990 merged commit 99948f5 into vuejs:dev Sep 8, 2020
@lmiller1990
Copy link
Member

Thank you for pushing back on these deprecations @xanf

@lmiller1990
Copy link
Member

I will release 1.1 this weekend.

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 this pull request may close these issues.

None yet

3 participants