Viktor 7ed4884c76
chore: package test-e2e-composable-vue3, update deps, migrate to vite (#1488)
Co-authored-by: Guillaume Chau <guillaume.b.chau@gmail.com>
2023-09-12 10:04:56 +02:00

16 lines
449 B
TypeScript

describe('nullableQuery', () => {
beforeEach(() => {
cy.task('db:reset')
cy.visit('/null-query')
})
it('should enable useQuery only if query is non-null', () => {
cy.get('button').should('exist')
cy.wait(100)
cy.get('[data-test-id="data"]').should('not.exist')
cy.get('.loading').should('not.exist')
cy.get('button').click()
cy.get('[data-test-id="data"]').should('contain', 'Loaded channel: General')
})
})