test: fix flaky did-change-theme-color test (#27739)

* test: move did-change-theme-color test to main

* test: enable did-change-theme-color test for WOA
This commit is contained in:
Cheng Zhao 2021-02-17 07:21:40 +09:00 committed by GitHub
parent 0bc782dfe5
commit 399216580d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 12 deletions

View file

@ -992,16 +992,6 @@ describe('<webview> tag', function () {
});
});
// TODO (jkleinsc) - reenable this test on WOA once https://github.com/electron/electron/issues/26045 is resolved
ifdescribe(process.platform !== 'win32' || process.arch !== 'arm64')('did-change-theme-color event', () => {
it('emits when theme color changes', async () => {
loadWebView(webview, {
src: `file://${fixtures}/pages/theme-color.html`
});
await waitForEvent(webview, 'did-change-theme-color');
});
});
describe('<webview>.getWebContentsId', () => {
it('can return the WebContents ID', async () => {
const src = 'about:blank';