File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed
default/src/components/__tests__
typescript-default/src/components/__tests__ Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { mount } from '@cypress/vue'
2
+ import HelloWorld from '../HelloWorld.vue'
3
+
4
+ describe ( 'HelloWorld' , ( ) => {
5
+ it ( 'playground' , ( ) => {
6
+ mount ( HelloWorld , { props : { msg : 'Hello Cypress' } } )
7
+ } )
8
+
9
+ it ( 'renders properly' , ( ) => {
10
+ mount ( HelloWorld , { props : { msg : 'Hello Cypress' } } )
11
+ cy . get ( 'h1' ) . should ( 'contain' , 'Hello Cypress' )
12
+ } )
13
+
14
+ it ( 'adds 1 when clicking the plus button' , ( ) => {
15
+ mount ( HelloWorld , { props : { msg : 'Hello Cypress' } } )
16
+
17
+ cy . get ( 'button' )
18
+ . should ( 'contain' , '0' )
19
+ . click ( )
20
+ . should ( 'contain' , '1' )
21
+ } )
22
+ } )
Original file line number Diff line number Diff line change
1
+ import { mount } from '@cypress/vue'
2
+ import HelloWorld from '../HelloWorld.vue'
3
+
4
+ describe ( 'HelloWorld' , ( ) => {
5
+ it ( 'playground' , ( ) => {
6
+ mount ( HelloWorld , { props : { msg : 'Hello Cypress' } } )
7
+ } )
8
+
9
+ it ( 'renders properly' , ( ) => {
10
+ mount ( HelloWorld , { props : { msg : 'Hello Cypress' } } )
11
+ cy . get ( 'h1' ) . should ( 'contain' , 'Hello Cypress' )
12
+ } )
13
+
14
+ it ( 'adds 1 when clicking the plus button' , ( ) => {
15
+ mount ( HelloWorld , { props : { msg : 'Hello Cypress' } } )
16
+
17
+ cy . get ( 'button' )
18
+ . should ( 'contain' , '0' )
19
+ . click ( )
20
+ . should ( 'contain' , '1' )
21
+ } )
22
+ } )
You can’t perform that action at this time.
0 commit comments