From a760687c6dd5d7f0af21163dc41843a6ef7d3492 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 1 Dec 2018 12:56:55 -0800 Subject: [PATCH] chore(tests): make focus test less flaky (#708) --- tests/spec/010-focus.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/spec/010-focus.js b/tests/spec/010-focus.js index c40b866..1eeb3b3 100644 --- a/tests/spec/010-focus.js +++ b/tests/spec/010-focus.js @@ -77,6 +77,7 @@ test('thread preserves focus', async t => { await loginAsFoobar(t) await t .navigateTo('/accounts/3') + .hover(getNthStatus(0)) await scrollToStatus(t, 2) await t.click(getNthStatus(2)) .expect(getUrl()).contains('/statuses/') @@ -87,6 +88,7 @@ test('thread preserves focus', async t => { .expect(getNthStatus(24).exists).ok() .expect(getActiveElementClass()).contains('status-sidebar') .expect(getActiveElementInsideNthStatus()).eql('24') + .hover(getNthStatus(23)) .click(getNthStatus(23)) .expect($(`${getNthStatusSelector(23)} .status-absolute-date`).exists).ok() await goBack()