File tree Expand file tree Collapse file tree 2 files changed +21
-15
lines changed
packages/test-e2e-composable-vue3/tests/e2e/specs Expand file tree Collapse file tree 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', () => {
7474 cy . get ( '.message' ) . should ( 'have.lengthOf' , 0 )
7575 } )
7676
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-
8777 it ( 'enabled' , ( ) => {
8878 cy . visit ( '/disabled' )
8979 cy . get ( '[data-test-id="data"]' ) . should ( 'not.exist' )
@@ -119,9 +109,4 @@ describe('Vue 3 + Apollo Composable', () => {
119109 cy . get ( '[data-test-id="global-loading"]' ) . should ( 'not.contain' , 'Global loading...' )
120110 cy . contains ( '#app' , 'Currently viewing # General' )
121111 } )
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- } )
127112} )
You can’t perform that action at this time.
0 commit comments