add test for sensitive media
This commit is contained in:
parent
09504794c6
commit
e952c7fcb2
15
tests/spec/08-status-media.js
Normal file
15
tests/spec/08-status-media.js
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
import { getNthVirtualArticle } from '../utils'
|
||||||
|
import { foobarRole } from '../roles'
|
||||||
|
|
||||||
|
fixture`08-status-media.js`
|
||||||
|
.page`http://localhost:4002`
|
||||||
|
|
||||||
|
test('shows sensitive images', async t => {
|
||||||
|
await t.useRole(foobarRole)
|
||||||
|
.hover(getNthVirtualArticle(3))
|
||||||
|
.hover(getNthVirtualArticle(6))
|
||||||
|
.hover(getNthVirtualArticle(7))
|
||||||
|
.click(getNthVirtualArticle(7).find('.status-sensitive-media-button'))
|
||||||
|
.expect(getNthVirtualArticle(7).find('.status-media img').getAttribute('alt')).eql('kitten')
|
||||||
|
.expect(getNthVirtualArticle(7).find('.status-media img').hasAttribute('src')).ok()
|
||||||
|
})
|
Loading…
Reference in a new issue