Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit c0c4d5f

Browse files
committed
Merge branch 'chore/error-with-cypress-ct' of github.com:JessicaSachs/chakra-ui-vue-next into chore/error-with-cypress-ct
2 parents 3edefd3 + 347ce47 commit c0c4d5f

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

cypress.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
"pluginsFile": "./plugins.js",
55
"testFiles": "**/*.test.*",
66
"supportFile": "packages/tests/support.ts"
7-
}
7+
}

index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
7+
<title>AUT Frame</title>
8+
</head>
9+
<body></body>
10+
</html>

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"c-spinner": "yarn workspace @chakra-ui/c-spinner",
3636
"c-badge": "yarn workspace @chakra-ui/c-badge",
3737
"c-portal": "yarn workspace @chakra-ui/c-portal",
38-
"c-popper": "yarn workspace @chakra-ui/c-popper"
38+
"c-popper": "yarn workspace @chakra-ui/c-popper",
39+
"cy": "node ../../github/cypress/scripts/cypress.js open-ct"
3940
},
4041
"license": "MIT",
4142
"private": true,
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { h } from 'vue'
2+
import { mount } from '@cypress/vue'
3+
import theme from '@chakra-ui/vue-theme'
4+
import { CButton } from '../src'
5+
6+
it('should render properly', () => {
7+
mount(CButton, {
8+
global: {
9+
provide: {
10+
$chakraTheme: theme,
11+
$chakraColorMode: 'light',
12+
$chakraIcons: {},
13+
},
14+
},
15+
slots: {
16+
default: 'Button',
17+
},
18+
})
19+
})

0 commit comments

Comments
 (0)