Skip to content

Commit

Permalink
test: split into outsideComponent.cy.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jan 24, 2024
1 parent 4eb80fb commit 48d0ac2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
describe('Query outside of component', () => {
beforeEach(() => {
cy.task('db:reset')
cy.visit('/')
})

it('supports queries outside of setup', () => {
cy.visit('/no-setup-query')
cy.contains('.no-setup-query', 'Hello world!')
})

it('supports queries outside of setup with multiple clients', () => {
cy.visit('/no-setup-query-multi-client')
cy.contains('.no-setup-query', 'Hello world!')
})

it('supports queries outside of setup but within scope', () => {
cy.visit('/no-setup-scope-query')
cy.contains('.no-setup-scope-query', 'Hello world!')
})
})
15 changes: 0 additions & 15 deletions packages/test-e2e-composable-vue3/tests/e2e/specs/test.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,6 @@ describe('Vue 3 + Apollo Composable', () => {
cy.get('.message').should('have.lengthOf', 0)
})

it('supports queries outside of setup', () => {
cy.visit('/no-setup-query')
cy.contains('.no-setup-query', 'Hello world!')
})

it('supports queries outside of setup with multiple clients', () => {
cy.visit('/no-setup-query-multi-client')
cy.contains('.no-setup-query', 'Hello world!')
})

it('enabled', () => {
cy.visit('/disabled')
cy.get('[data-test-id="data"]').should('not.exist')
Expand Down Expand Up @@ -119,9 +109,4 @@ describe('Vue 3 + Apollo Composable', () => {
cy.get('[data-test-id="global-loading"]').should('not.contain', 'Global loading...')
cy.contains('#app', 'Currently viewing # General')
})

it('supports queries outside of setup but within scope', () => {
cy.visit('/no-setup-scope-query')
cy.contains('.no-setup-scope-query', 'Hello world!')
})
})

0 comments on commit 48d0ac2

Please sign in to comment.