Skip to content

Commit 1fdba48

Browse files
committed
fix flacky test
1 parent 54f71b0 commit 1fdba48

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

cypress/e2e/500_control.cy.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ describe('load control page, verify stream is there', () => {
2727
cy.get('#app').click()
2828
cy.get('button.photo').click()
2929
})
30+
31+
it('record a video', () => {
32+
cy.visit('http://localhost:8080')
33+
cy.get('.v-carousel').should('exist')
34+
cy.get('button.v-app-bar-nav-icon').should('exist').click()
35+
cy.get('a.v-list-item[href*="control"]').click()
36+
cy.get('#app').click()
37+
cy.get('button.video').click()
38+
cy.wait(5000)
39+
cy.get('button.video').click()
40+
})
3041
/*
3142
it('say a phrase', () => {
3243
cy.visit('http://localhost:8080')
@@ -50,13 +61,3 @@ describe('load control page, verify stream is there', () => {
5061
})
5162
})
5263
*/
53-
it('record a video', () => {
54-
cy.visit('http://localhost:8080')
55-
cy.get('.v-carousel').should('exist')
56-
cy.get('button.v-app-bar-nav-icon').should('exist').click()
57-
cy.get('a.v-list-item[href*="control"]').click()
58-
cy.get('#app').click()
59-
cy.get('button.video').click()
60-
cy.wait(5000)
61-
cy.get('button.video').click()
62-
})

0 commit comments

Comments
 (0)