Skip to content

Commit 515aa51

Browse files
committed
fix flacky test
1 parent 87f666d commit 515aa51

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

cypress/e2e/500_control.cy.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ describe('load control page, verify stream is there', () => {
3535
cy.get('a.v-list-item[href*="control"]').click()
3636
cy.get('#app').click()
3737
cy.get('button.video').click()
38-
cy.wait(1000)
39-
cy.get('button.video').click()
4038
cy.wait(5000)
39+
cy.get('button.video').click()
4140
})
4241

4342
it('say a phrase', () => {
@@ -60,4 +59,15 @@ describe('load control page, verify stream is there', () => {
6059
cy.get('a.gallery').click()
6160
cy.url().should('include', '/gallery')
6261
})
62+
})
63+
64+
it('record a video', () => {
65+
cy.visit('http://localhost:8080')
66+
cy.get('.v-carousel').should('exist')
67+
cy.get('button.v-app-bar-nav-icon').should('exist').click()
68+
cy.get('a.v-list-item[href*="control"]').click()
69+
cy.get('#app').click()
70+
cy.get('button.video').click()
71+
cy.wait(5000)
72+
cy.get('button.video').click()
6373
})

0 commit comments

Comments
 (0)