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)', () => {
|
describe('sendInputEvent(event)', () => {
|
||||||
beforeEach((done) => {
|
beforeEach(async () => {
|
||||||
w.webContents.once('did-finish-load', () => done())
|
await w.loadFile(path.join(fixtures, 'pages', 'key-events.html'))
|
||||||
w.loadFile(path.join(fixtures, 'pages', 'key-events.html'))
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it('can send keydown events', (done) => {
|
it('can send keydown events', (done) => {
|
||||||
|
|
Loading…
Reference in a new issue