fix: potential flake/race in webview specs (#16950)
This commit is contained in:
parent
31494dfade
commit
8497bb1327
1 changed files with 2 additions and 1 deletions
|
@ -1488,9 +1488,10 @@ describe('<webview> tag', function () {
|
|||
zoomFactor: 1.2
|
||||
}
|
||||
})
|
||||
const zoomEventPromise = emittedOnce(ipcMain, 'webview-parent-zoom-level')
|
||||
w.loadFile(path.join(fixtures, 'pages', 'webview-zoom-factor.html'))
|
||||
|
||||
const [, zoomFactor, zoomLevel] = await emittedOnce(ipcMain, 'webview-parent-zoom-level')
|
||||
const [, zoomFactor, zoomLevel] = await zoomEventPromise
|
||||
expect(zoomFactor).to.equal(1.2)
|
||||
expect(zoomLevel).to.equal(1)
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue