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

Documentation has not been updated for Vuetify 3 #4958

Open
skamansam opened this issue Jan 4, 2023 · 2 comments
Open

Documentation has not been updated for Vuetify 3 #4958

skamansam opened this issue Jan 4, 2023 · 2 comments
Labels

Comments

@skamansam
Copy link

The documentation at https://docs.cypress.io/guides/component-testing/vue/examples#Replicating-the-expected-Component-Hierarchy has not been updated for Vuetify 3 and as such, it does not work for the current version of Vuetify.

(I can't for the life of me figure out how to display anything in component testing for Vue 3 + Vuetify 3. My repo is at https://github.com/BizziQuest/QuestListsFB. Components just aren't mounting, so I'm not sure if it's a documentation error or something on my end.)

@moritz-baecker-integra
Copy link

I got the same problem. The documentation doesn't work for Vuetify. It doesnt seem to work at all. VApp whats that supposed to be? It got never defined. Also nearly everything else here doesn't work
https://docs.cypress.io/app/component-testing/vue/examples#Replicating-Plugins

image

@moritz-baecker-integra
Copy link

moritz-baecker-integra commented Nov 7, 2024

@skamansam
It only worked for me like this:

import { createVuetify } from 'vuetify'
import * as vuetifycomponents from 'vuetify/components/VDataTable'

Cypress.Commands.add('mount', (component, options = {}) => {
  const vuetify = createVuetify(  {components: vuetifycomponents});

  options.global = {
    plugins: [vuetify],
    ...options.global,
  };

  return mount(component, options);
});

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

No branches or pull requests

3 participants