Skip to content

Commit

Permalink
test: fix a possible race condition in sendInputEvent test (#15530)
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Nov 1, 2018
1 parent fe8965e commit 932ffdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/api-web-contents-spec.js
Expand Up @@ -313,8 +313,8 @@ describe('webContents module', () => {

describe('sendInputEvent(event)', () => {
beforeEach((done) => {
w.loadFile(path.join(fixtures, 'pages', 'key-events.html'))
w.webContents.once('did-finish-load', () => done())
w.loadFile(path.join(fixtures, 'pages', 'key-events.html'))
})

it('can send keydown events', (done) => {
Expand Down

0 comments on commit 932ffdc

Please sign in to comment.