feat(test): add tests for About modal

This commit is contained in:
Phan An 2021-01-05 00:05:29 +01:00
parent 9b4a8d161d
commit 608fa0e8df

View file

@ -0,0 +1,9 @@
context('About Koel', () => {
beforeEach(() => cy.$login())
it('displays the About modal', () => {
cy.findByTestId('about-btn').click()
cy.findByTestId('about-modal').should('be.visible').within(() => cy.get('[data-test=close-modal-btn]').click())
cy.findByTestId('about-modal').should('not.exist')
})
})