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

Co-authored-by: Milan Burda <milan.burda@gmail.com>
This commit is contained in:
trop[bot]
2022-06-16 09:42:55 +09:00
committed by GitHub
parent 25ed5f2d97
commit 0f92cf21a8

View File

@@ -555,6 +555,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, {