test: add missing page-title-updated event spec for webview (#34543)

Co-authored-by: Milan Burda <milan.burda@gmail.com>
This commit is contained in:
trop[bot]
2022-06-14 16:16:28 -04:00
committed by GitHub
parent 4e97448f70
commit 5dd4b6aaed

View File

@@ -554,6 +554,18 @@ describe('<webview> 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, {