spec: robustify sendInputEvent beforeEach hook (#17300)

This commit is contained in:
Jeremy Apthorp 2019-03-11 13:35:44 -07:00 committed by Shelley Vohr
parent c7a453226d
commit 188d31132b

View file

@ -427,9 +427,8 @@ describe('webContents module', () => {
})
describe('sendInputEvent(event)', () => {
beforeEach((done) => {
w.webContents.once('did-finish-load', () => done())
w.loadFile(path.join(fixtures, 'pages', 'key-events.html'))
beforeEach(async () => {
await w.loadFile(path.join(fixtures, 'pages', 'key-events.html'))
})
it('can send keydown events', (done) => {