diff --git a/spec/webview-spec.js b/spec/webview-spec.js index d47adedf2dcd..6b548b56541b 100644 --- a/spec/webview-spec.js +++ b/spec/webview-spec.js @@ -554,6 +554,18 @@ describe(' tag', function () { }); }); + describe('page-title-updated event', () => { + it('emits when title is set', async () => { + loadWebView(webview, { + src: `file://${fixtures}/pages/a.html` + }); + const { title, explicitSet } = await waitForEvent(webview, 'page-title-updated'); + + expect(title).to.equal('test'); + expect(explicitSet).to.be.true(); + }); + }); + describe('page-title-set event', () => { it('emits when title is set', async () => { loadWebView(webview, {