test: fix flaky test

This commit is contained in:
Nolan Lawson 2021-07-03 13:52:02 -07:00
parent f13e5be3a0
commit 885b47a534
1 changed files with 0 additions and 2 deletions

View File

@ -1,6 +1,5 @@
import {
getActiveElementTagName,
getNthStatus,
getUrl,
searchButton, searchInput, searchNavButton
} from '../utils'
@ -13,7 +12,6 @@ fixture`040-shortcuts-search.js`
test('Pressing / goes to search and focuses input but does not prevent left/right hotkeys afterwards', async t => {
await loginAsFoobar(t)
await t
.expect(getNthStatus(1).exists).ok()
.pressKey('/')
.expect(getUrl()).contains('/search')
.expect(getActiveElementTagName()).match(/input/i)