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

Missing component name prevents it from being selected during unit testing #58

Closed
rokkie opened this issue Jun 14, 2019 · 0 comments · Fixed by #59
Closed

Missing component name prevents it from being selected during unit testing #58

rokkie opened this issue Jun 14, 2019 · 0 comments · Fixed by #59

Comments

@rokkie
Copy link
Contributor

rokkie commented Jun 14, 2019

I was writing a test that asserts if the components gets rendered, but I cannot select the component with something like:

// ...
const wrapper = shallowMount(MyComponent, { /* ... */ });
wrapper.findAll({ name: 'YoutubeEmbed' }); // or any other name
// ...

It appears that this is because the component doesn't have a name.

rokkie added a commit to rokkie/vue-youtube-embed that referenced this issue Jun 14, 2019
This allows it to be selected during unit tests, otherwise something
like `wrapper.findAll({ name: 'YoutubeEmbed' })` (or any other name
for that matter) will never yield anything.
Fixes kaorun343#58
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.

1 participant