Skip to content

Commit dcb4aaf

Browse files
committed
fix gallery test
1 parent f01dfbf commit dcb4aaf

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

cypress/e2e/500_control.cy.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ describe('load control page, verify stream is there', () => {
2626
cy.get('a.v-list-item[href*="control"]').click()
2727
cy.get('#app').click()
2828
cy.get('button.photo').click()
29+
cy.visit('http://localhost:8080')
30+
cy.get('.v-carousel').should('exist')
31+
cy.get('button.v-app-bar-nav-icon').should('exist').click()
32+
cy.get('a.v-list-item[href*="gallery"]').click()
33+
cy.get('#app').click()
34+
cy.get('.gallery').contains('DSC1').should('exist')
35+
cy.get('.v-main').contains('DSC1').click()
36+
cy.get('.v-card-title.details').contains('DSC1').should('exist')
37+
cy.get('.v-card-title.details').contains('DSC1').parents('.v-card').find('button.ok').click()
38+
cy.get('.v-main').contains('DSC1').parents('.v-card').find('.mdi-delete').click()
39+
cy.get('#gallery_photo_confirm_card').find('.ok').click()
2940
})
3041

3142
it('record a video', () => {
@@ -37,6 +48,18 @@ describe('load control page, verify stream is there', () => {
3748
cy.get('button.video').click()
3849
cy.wait(5000)
3950
cy.get('button.video').click()
51+
cy.visit('http://localhost:8080')
52+
cy.get('.v-carousel').should('exist')
53+
cy.get('button.v-app-bar-nav-icon').should('exist').click()
54+
cy.get('a.v-list-item[href*="gallery"]').click()
55+
cy.get('#app').click()
56+
cy.get('.gallery').contains('VID1').should('exist')
57+
cy.get('.v-main').contains('VID1').click()
58+
cy.get('.v-card-title.details').contains('VID1').should('exist')
59+
cy.get('.v-card-title.details').contains('VID1').parents('.v-card').find('button.ok').click()
60+
cy.get('.v-main').contains('VID1').parents('.v-card').find('.mdi-delete').click()
61+
cy.get('#gallery_photo_confirm_card').find('.ok').click()
62+
4063
})
4164
/*
4265
it('say a phrase', () => {
@@ -59,5 +82,5 @@ describe('load control page, verify stream is there', () => {
5982
cy.get('a.gallery').click()
6083
cy.url().should('include', '/gallery')
6184
})
62-
*/
85+
*/
6386
})

0 commit comments

Comments
 (0)