Skip to content

Commit

Permalink
test: disable flaky arm tests (#26046)
Browse files Browse the repository at this point in the history
* tests: disable flaking test on all arm platforms

* tests: disable flaky did-change-theme-color tests on WOA
  • Loading branch information
jkleinsc committed Oct 20, 2020
1 parent c6a6f53 commit 4ce7ca6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion spec-main/api-service-workers-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { v4 } from 'uuid';
import { AddressInfo } from 'net';
import { closeWindow } from './window-helpers';
import { emittedOnce, emittedNTimes } from './events-helpers';
import { ifdescribe } from './spec-helpers';

const partition = 'service-workers-spec';
const uuid = v4();
Expand Down Expand Up @@ -65,7 +66,8 @@ describe('session.serviceWorkers', () => {
});
});

describe('getFromVersionID()', () => {
// TODO (jkleinsc) - reenable this test once https://github.com/electron/electron/issues/26043 is resolved
ifdescribe(!process.arch.includes('arm'))('getFromVersionID()', () => {
it('should report the correct script url and scope', async () => {
const eventInfo = await emittedOnce(ses.serviceWorkers, 'console-message', () => w.loadURL(`${baseUrl}/index.html`));
const details: Electron.MessageDetails = eventInfo[1];
Expand Down
3 changes: 2 additions & 1 deletion spec-main/api-web-contents-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,8 @@ describe('webContents module', () => {
}
});

describe('did-change-theme-color event', () => {
// 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', () => {
afterEach(closeAllWindows);
it('is triggered with correct theme color', (done) => {
const w = new BrowserWindow({ show: true });
Expand Down
3 changes: 2 additions & 1 deletion spec/webview-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,8 @@ describe('<webview> tag', function () {
});
});

describe('did-change-theme-color event', () => {
// 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`
Expand Down

0 comments on commit 4ce7ca6

Please sign in to comment.