fix test
This commit is contained in:
parent
4a0622884c
commit
2b65ffe5d2
|
@ -17,7 +17,7 @@ test('content warnings are posted', async t => {
|
||||||
.click(getNthShowOrHideButton(0))
|
.click(getNthShowOrHideButton(0))
|
||||||
.expect(getNthStatus(0).find('.status-content').innerText).contains('hello this is a toot')
|
.expect(getNthStatus(0).find('.status-content').innerText).contains('hello this is a toot')
|
||||||
.click(getNthShowOrHideButton(0))
|
.click(getNthShowOrHideButton(0))
|
||||||
.expect(getNthStatus(0).find('.status-content').exists).notOk()
|
.expect(getNthStatus(0).innerText).notContains('hello this is a toot')
|
||||||
})
|
})
|
||||||
|
|
||||||
test('content warnings are not posted if removed', async t => {
|
test('content warnings are not posted if removed', async t => {
|
||||||
|
@ -28,6 +28,7 @@ test('content warnings are not posted if removed', async t => {
|
||||||
.click(contentWarningButton)
|
.click(contentWarningButton)
|
||||||
.expect(composeContentWarning.exists).notOk()
|
.expect(composeContentWarning.exists).notOk()
|
||||||
.click(composeButton)
|
.click(composeButton)
|
||||||
.expect(getNthStatus(0).find('.status-spoiler').exists).notOk({timeout: 30000})
|
.expect(getNthStatus(0).innerText).contains('hi this is another toot', {timeout: 30000})
|
||||||
|
.expect(getNthStatus(0).innerText).notContains('content warning!')
|
||||||
.expect(getNthStatus(0).find('.status-content').innerText).contains('hi this is another toot')
|
.expect(getNthStatus(0).find('.status-content').innerText).contains('hi this is another toot')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue