File tree 2 files changed +21
-15
lines changed
packages/test-e2e-composable-vue3/tests/e2e/specs
2 files changed +21
-15
lines changed Original file line number Diff line number Diff line change
1
+ describe ( 'Query outside of component' , ( ) => {
2
+ beforeEach ( ( ) => {
3
+ cy . task ( 'db:reset' )
4
+ cy . visit ( '/' )
5
+ } )
6
+
7
+ it ( 'supports queries outside of setup' , ( ) => {
8
+ cy . visit ( '/no-setup-query' )
9
+ cy . contains ( '.no-setup-query' , 'Hello world!' )
10
+ } )
11
+
12
+ it ( 'supports queries outside of setup with multiple clients' , ( ) => {
13
+ cy . visit ( '/no-setup-query-multi-client' )
14
+ cy . contains ( '.no-setup-query' , 'Hello world!' )
15
+ } )
16
+
17
+ it ( 'supports queries outside of setup but within scope' , ( ) => {
18
+ cy . visit ( '/no-setup-scope-query' )
19
+ cy . contains ( '.no-setup-scope-query' , 'Hello world!' )
20
+ } )
21
+ } )
Original file line number Diff line number Diff line change @@ -74,16 +74,6 @@ describe('Vue 3 + Apollo Composable', () => {
74
74
cy . get ( '.message' ) . should ( 'have.lengthOf' , 0 )
75
75
} )
76
76
77
- it ( 'supports queries outside of setup' , ( ) => {
78
- cy . visit ( '/no-setup-query' )
79
- cy . contains ( '.no-setup-query' , 'Hello world!' )
80
- } )
81
-
82
- it ( 'supports queries outside of setup with multiple clients' , ( ) => {
83
- cy . visit ( '/no-setup-query-multi-client' )
84
- cy . contains ( '.no-setup-query' , 'Hello world!' )
85
- } )
86
-
87
77
it ( 'enabled' , ( ) => {
88
78
cy . visit ( '/disabled' )
89
79
cy . get ( '[data-test-id="data"]' ) . should ( 'not.exist' )
@@ -119,9 +109,4 @@ describe('Vue 3 + Apollo Composable', () => {
119
109
cy . get ( '[data-test-id="global-loading"]' ) . should ( 'not.contain' , 'Global loading...' )
120
110
cy . contains ( '#app' , 'Currently viewing # General' )
121
111
} )
122
-
123
- it ( 'supports queries outside of setup but within scope' , ( ) => {
124
- cy . visit ( '/no-setup-scope-query' )
125
- cy . contains ( '.no-setup-scope-query' , 'Hello world!' )
126
- } )
127
112
} )
You can’t perform that action at this time.
0 commit comments