loud-zebra-21352
01/14/2022, 2:35 PMloud-zebra-21352
01/14/2022, 3:04 PMloud-zebra-21352
01/14/2022, 3:19 PMwonderful-match-15836
01/14/2022, 5:19 PMdata-testid
or similar attr on the outermost element and assert that it's not there after mount, but that it is there if you mount with more than one page? Also would you mind making an issue for the global component CSS problem you had?loud-zebra-21352
01/15/2022, 12:07 PMrich-lamp-44536
01/18/2022, 8:57 PMdev-server start
)dazzling-angle-28206
01/19/2022, 3:39 PMwonderful-match-15836
01/20/2022, 12:49 AMcolossal-horse-50990
01/20/2022, 2:41 PMabundant-raincoat-14529
01/25/2022, 6:36 PMancient-businessperson-81048
01/25/2022, 11:05 PMts
// Component Testing Footer.Vue within the context of applying a layout
import defaultLayout from '~/layouts/default.vue'
import Footer from '~/components/Footer.vue'
mount(defaultLayout, { global: { stubs: { RouterView: true }, components: { Footer } } })
mammoth-grass-89433
01/26/2022, 12:06 PMimport { mount } from '@cypress/vue'
import Primevue from 'primevue/config'
import Button from 'primevue/button'
it('renders a message', () => {
mount(Button, {
props: {
label: 'Hello Cypress!'
},
global: {
plugins: [Primevue]
}
})
cy.get('button').contains('Hello Cypress!')
})
Also I am having this warning on my terminal. Could this be causing my problem?
WARNING in ./node_modules/@vue/test-utils/dist/vue-test-utils.esm-bundler.js 283:18-28
"export 'extend' (imported as 'Vue') was not found in 'vue'
@ ./node_modules/@cypress/vue/dist/cypress-vue.esm-bundler.js
@ ./cypress/component/HelloWorld.spec.js
@ ./node_modules/@cypress/webpack-dev-server/dist/loader.js!./node_modules/@cypress/webpack-dev-server/dist/browser.js
@ ./node_modules/@cypress/webpack-dev-server/dist/browser.js
for further reference I also attached my package.json
file.
I would appreciate your help!stocky-dream-36427
01/27/2022, 10:06 PM<VApp>
-- other UI frameworks have different requirements.stocky-dream-36427
01/27/2022, 10:06 PMmain.js
and making sure all of that is happening within the Cypress iframe.dazzling-angle-28206
01/29/2022, 1:37 AMbulky-sundown-74498
01/29/2022, 2:17 PMdazzling-angle-28206
01/29/2022, 7:26 PMuser
02/02/2022, 6:57 AMuser
02/05/2022, 4:03 AMuser
02/05/2022, 4:05 AMhelpful-oxygen-10561
02/15/2022, 5:51 AMdry-egg-99804
02/22/2022, 7:16 AMminiature-cpu-75610
02/24/2022, 8:49 PMwonderful-match-15836
02/27/2022, 12:51 AMminiature-cpu-75610
02/27/2022, 7:51 PMcolossal-horse-50990
03/13/2022, 3:13 PMbright-nightfall-68010
04/26/2022, 1:08 PMmagnificent-finland-58048
04/26/2022, 4:57 PMwonderful-match-15836
04/27/2022, 6:10 PMnext
branch, eg https://github.com/vuetifyjs/vuetify/blob/next/packages/vuetify/src/components/VBadge/__tests__/VBadge.spec.cy.tsx