mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +00:00
fix(test): broken home tests
This commit is contained in:
parent
4558b32e19
commit
94c44c41f2
1 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ context('Home Screen', () => {
|
|||
beforeEach(() => {
|
||||
cy.clock()
|
||||
cy.$login()
|
||||
cy.tick(0)
|
||||
cy.tick(100)
|
||||
})
|
||||
|
||||
it('renders', () => {
|
||||
|
@ -32,14 +32,14 @@ context('Home Screen', () => {
|
|||
it('a song item can be played', () => {
|
||||
cy.$mockPlayback()
|
||||
|
||||
cy.get('.top-song-list [data-test=song-card]:first-child').within(() => {
|
||||
cy.get('.top-song-list li:first-child [data-test=song-card]').within(() => {
|
||||
cy.get('a.control').invoke('show').click()
|
||||
}).should('have.class', 'playing')
|
||||
cy.$assertPlaying()
|
||||
})
|
||||
|
||||
it('a song item has a context menu', () => {
|
||||
cy.get('.top-song-list [data-test=song-card]:first-child').rightclick()
|
||||
cy.get('.top-song-list li:first-child').rightclick()
|
||||
cy.findByTestId('song-context-menu').should('be.visible')
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue