Skip to content

Commit

Permalink
spec: robustify sendInputEvent beforeEach hook (#17340)
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and MarshallOfSound committed Mar 11, 2019
1 parent 2cb7b6b commit 2f31302
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/api-web-contents-spec.js
Expand Up @@ -424,9 +424,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) => {
Expand Down

0 comments on commit 2f31302

Please sign in to comment.