From 2b65ffe5d2476b9f7a5aa36d5346dec107815905 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 14 Apr 2018 09:55:01 -0700 Subject: [PATCH] fix test --- tests/spec/110-compose-content-warnings.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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') })