test: fix flaky test (#2060)

This commit is contained in:
Nolan Lawson 2021-07-03 18:07:54 -07:00 committed by GitHub
parent f13e5be3a0
commit 7bc9c3f263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)