test: attempt to fix flaky webview.clearHistory test (#19083)
This commit is contained in:
parent
39c4a5411d
commit
c2d78deeca
1 changed files with 3 additions and 2 deletions
|
@ -917,11 +917,12 @@ describe('<webview> tag', function () {
|
|||
|
||||
describe('<webview>.clearHistory()', () => {
|
||||
it('should clear the navigation history', async () => {
|
||||
loadWebView(webview, {
|
||||
const message = waitForEvent(webview, 'ipc-message')
|
||||
await loadWebView(webview, {
|
||||
nodeintegration: 'on',
|
||||
src: `file://${fixtures}/pages/history.html`
|
||||
})
|
||||
const event = await waitForEvent(webview, 'ipc-message')
|
||||
const event = await message
|
||||
|
||||
expect(event.channel).to.equal('history')
|
||||
expect(event.args[0]).to.equal(2)
|
||||
|
|
Loading…
Reference in a new issue