mirror of
https://github.com/koel/koel
synced 2025-02-17 13:58:28 +00:00
feat(test): add tests for About modal
This commit is contained in:
parent
9b4a8d161d
commit
608fa0e8df
1 changed files with 9 additions and 0 deletions
9
cypress/integration/about.spec.ts
Normal file
9
cypress/integration/about.spec.ts
Normal 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')
|
||||
})
|
||||
})
|
Loading…
Add table
Reference in a new issue