test: add tests for image/video modals (#1045)
should ensure #1042 does not happen again
This commit is contained in:
parent
df8c49cb57
commit
d711b37165
|
@ -34,12 +34,16 @@ test('click and close image and video modals', async t => {
|
|||
await t.expect(modalDialogContents.exists).notOk()
|
||||
.click($(`${getNthStatusSelector(videoIdx)} .play-video-button`))
|
||||
.expect(modalDialogContents.exists).ok()
|
||||
.expect($('.modal-dialog video').getAttribute('src')).contains('mp4')
|
||||
.expect($('.modal-dialog video').getAttribute('poster')).contains('png')
|
||||
.click(closeDialogButton)
|
||||
.expect(modalDialogContents.exists).notOk()
|
||||
.hover(getNthStatus(kittenIdx - 1))
|
||||
.hover(getNthStatus(kittenIdx))
|
||||
.click($(`${getNthStatusSelector(kittenIdx)} .show-image-button`))
|
||||
.expect(modalDialogContents.exists).ok()
|
||||
.expect($('.modal-dialog video').getAttribute('src')).contains('mp4')
|
||||
.expect($('.modal-dialog video').getAttribute('poster')).contains('png')
|
||||
.click(closeDialogButton)
|
||||
.expect(modalDialogContents.exists).notOk()
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue