Skip to content

Commit 732547c

Browse files
committed
feat: import main.css in Cypress Component Testing page
so that the components mounted in the playground looks the same as when they are actually used in the app.
1 parent e08d04e commit 732547c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

template/config/cypress-ct/cypress/support/component.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ import './commands'
1919
// Alternatively you can use CommonJS syntax:
2020
// require('./commands')
2121

22+
// Import global styles
23+
import '@/main.css'
24+
2225
import { mount } from 'cypress/vue'
2326

2427
Cypress.Commands.add('mount', mount)

template/config/cypress-ct/cypress/support/component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ import './commands'
1919
// Alternatively you can use CommonJS syntax:
2020
// require('./commands')
2121

22+
// Import global styles
23+
import '@/main.css'
24+
2225
import { mount } from 'cypress/vue'
2326

2427
// Augment the Cypress namespace to include type definitions for

0 commit comments

Comments
 (0)