spec: robustify sendInputEvent beforeEach hook (#17300)
This commit is contained in:
parent
c7a453226d
commit
188d31132b
1 changed files with 2 additions and 3 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue