Skip to content

Commit 4ce7ca6

Browse files
authored
test: disable flaky arm tests (electron#26046)
* tests: disable flaking test on all arm platforms * tests: disable flaky did-change-theme-color tests on WOA
1 parent c6a6f53 commit 4ce7ca6

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

spec-main/api-service-workers-spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { v4 } from 'uuid';
77
import { AddressInfo } from 'net';
88
import { closeWindow } from './window-helpers';
99
import { emittedOnce, emittedNTimes } from './events-helpers';
10+
import { ifdescribe } from './spec-helpers';
1011

1112
const partition = 'service-workers-spec';
1213
const uuid = v4();
@@ -65,7 +66,8 @@ describe('session.serviceWorkers', () => {
6566
});
6667
});
6768

68-
describe('getFromVersionID()', () => {
69+
// TODO (jkleinsc) - reenable this test once https://github.com/electron/electron/issues/26043 is resolved
70+
ifdescribe(!process.arch.includes('arm'))('getFromVersionID()', () => {
6971
it('should report the correct script url and scope', async () => {
7072
const eventInfo = await emittedOnce(ses.serviceWorkers, 'console-message', () => w.loadURL(`${baseUrl}/index.html`));
7173
const details: Electron.MessageDetails = eventInfo[1];

spec-main/api-web-contents-spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,8 @@ describe('webContents module', () => {
13751375
}
13761376
});
13771377

1378-
describe('did-change-theme-color event', () => {
1378+
// TODO (jkleinsc) - reenable this test on WOA once https://github.com/electron/electron/issues/26045 is resolved
1379+
ifdescribe(process.platform !== 'win32' || process.arch !== 'arm64')('did-change-theme-color event', () => {
13791380
afterEach(closeAllWindows);
13801381
it('is triggered with correct theme color', (done) => {
13811382
const w = new BrowserWindow({ show: true });

spec/webview-spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,8 @@ describe('<webview> tag', function () {
986986
});
987987
});
988988

989-
describe('did-change-theme-color event', () => {
989+
// TODO (jkleinsc) - reenable this test on WOA once https://github.com/electron/electron/issues/26045 is resolved
990+
ifdescribe(process.platform !== 'win32' || process.arch !== 'arm64')('did-change-theme-color event', () => {
990991
it('emits when theme color changes', async () => {
991992
loadWebView(webview, {
992993
src: `file://${fixtures}/pages/theme-color.html`

0 commit comments

Comments
 (0)