mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
spec: robustify sendInputEvent beforeEach hook (#17300)
This commit is contained in:
committed by
Shelley Vohr
parent
c7a453226d
commit
188d31132b
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user