diff --git a/tests/spec/110-compose-content-warnings.js b/tests/spec/110-compose-content-warnings.js index 0260c5b3..79048e6e 100644 --- a/tests/spec/110-compose-content-warnings.js +++ b/tests/spec/110-compose-content-warnings.js @@ -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') })