mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
chore: reformat sidebar tests
This commit is contained in:
parent
36cbd7e325
commit
56b2134760
1 changed files with 2 additions and 8 deletions
|
@ -36,17 +36,11 @@ context('Sidebar Functionalities', () => {
|
|||
cy.$loginAsNonAdmin()
|
||||
cy.$each(commonMenuItems, assertMenuItem)
|
||||
|
||||
cy.$each(managementMenuItems, (text: string) => {
|
||||
cy.get('#sidebar')
|
||||
.findByText(text)
|
||||
.should('not.exist')
|
||||
})
|
||||
cy.$each(managementMenuItems, (text: string) => cy.get('#sidebar').findByText(text).should('not.exist'))
|
||||
})
|
||||
|
||||
it('does not have a YouTube item if YouTube is not used', () => {
|
||||
cy.$login({ useYouTube: false })
|
||||
cy.get('#sidebar')
|
||||
.findByText('YouTube Video')
|
||||
.should('not.exist')
|
||||
cy.get('#sidebar').findByText('YouTube Video').should('not.exist')
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue