From 5b04db8442774d8d60b7f52697d203e02d442072 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Mon, 15 Feb 2021 16:45:41 -0800 Subject: [PATCH] test: fix flakey test (#1956) --- tests/spec/013-compose-media.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/spec/013-compose-media.js b/tests/spec/013-compose-media.js index d6b4a22e..1dd78c87 100644 --- a/tests/spec/013-compose-media.js +++ b/tests/spec/013-compose-media.js @@ -66,8 +66,10 @@ test('does not add URLs as media is added/removed', async t => { .typeText(composeInput, 'this is a toot') .expect(mediaButton.exists).ok() await (uploadKittenImage(1)()) + await sleep(500) await t.expect(composeInput.value).eql('this is a toot') await (uploadKittenImage(1)()) + await sleep(500) await t.expect(composeInput.value).eql('this is a toot') .click(getNthDeleteMediaButton(1)) .expect(composeInput.value).eql('this is a toot')