test: fix flakey test (#1956)

cheerio-rc5
Nolan Lawson 2021-02-15 16:45:41 -08:00 zatwierdzone przez GitHub
rodzic 1e974824e1
commit 5b04db8442
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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')