pull/110/head
Nolan Lawson 2018-04-14 09:55:01 -07:00
rodzic 4a0622884c
commit 2b65ffe5d2
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -17,7 +17,7 @@ test('content warnings are posted', async t => {
.click(getNthShowOrHideButton(0))
.expect(getNthStatus(0).find('.status-content').innerText).contains('hello this is a toot')
.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 => {
@ -28,6 +28,7 @@ test('content warnings are not posted if removed', async t => {
.click(contentWarningButton)
.expect(composeContentWarning.exists).notOk()
.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')
})