test: fix a possible race condition in sendInputEvent test (#15530)
This commit is contained in:
parent
fe8965efa2
commit
932ffdc1e1
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue