Skip to content

Fix vuetify example #134

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

Merged
merged 3 commits into from
Apr 9, 2020
Merged

Conversation

mediafreakch
Copy link
Contributor

@mediafreakch mediafreakch commented Apr 8, 2020

In #123 I introduced a different approach to integrate with Vuetify. Unfortunately setAttribute always returns undefined, so container eventually was undefined.

In my own project this lead to bespoken Unable to localte target [data-app] warnings when rendering certain vuetify components, such as v-menu or v-dialog. In this example that went unnoticed, because the example component itself was wrapped within v-app.

I fixed that and added tests for it.

A sidenote: In my own project, adding the container to the body(document.body.appendChild(root)) lead to side-effects when interacting with v-menu. It seemed like the component was leaking between tests. Even with Jest running as --runInBand. However it doesn't happen in this repo. So for this, I am lost 😒. Indeed if I copy paste this test and the tested component over to my project, it fails because it cannot find the opened menu item :/

@codecov
Copy link

codecov bot commented Apr 8, 2020

Codecov Report

Merging #134 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #134   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           68        68           
  Branches        14        14           
=========================================
  Hits            68        68           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d628f36...16c7860. Read the comment docs.

Copy link
Member

@afontcu afontcu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for this

@afontcu afontcu merged commit 3f5b5f5 into testing-library:master Apr 9, 2020
@afontcu
Copy link
Member

afontcu commented May 20, 2020

🎉 This PR is included in version 5.0.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants