kopia lustrzana https://github.com/nolanlawson/pinafore
test: add tests for image/video modals (#1045)
should ensure #1042 does not happen againpull/1046/head
rodzic
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()
|
||||
})
|
||||
|
|
Ładowanie…
Reference in New Issue