test: fix flaky test (#2060)
This commit is contained in:
parent
f13e5be3a0
commit
7bc9c3f263
|
@ -1,6 +1,5 @@
|
||||||
import {
|
import {
|
||||||
getActiveElementTagName,
|
getActiveElementTagName,
|
||||||
getNthStatus,
|
|
||||||
getUrl,
|
getUrl,
|
||||||
searchButton, searchInput, searchNavButton
|
searchButton, searchInput, searchNavButton
|
||||||
} from '../utils'
|
} 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 => {
|
test('Pressing / goes to search and focuses input but does not prevent left/right hotkeys afterwards', async t => {
|
||||||
await loginAsFoobar(t)
|
await loginAsFoobar(t)
|
||||||
await t
|
await t
|
||||||
.expect(getNthStatus(1).exists).ok()
|
|
||||||
.pressKey('/')
|
.pressKey('/')
|
||||||
.expect(getUrl()).contains('/search')
|
.expect(getUrl()).contains('/search')
|
||||||
.expect(getActiveElementTagName()).match(/input/i)
|
.expect(getActiveElementTagName()).match(/input/i)
|
||||||
|
|
Loading…
Reference in a new issue