test: disable newly added tests on WOA (#33143)

* tests: disable newly added tests on WOA

* test: also disable test on arm64 macOS
This commit is contained in:
John Kleinschmidt 2022-03-07 06:18:58 -08:00 committed by GitHub
parent b43f7702c8
commit f45aaea537
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4874,8 +4874,8 @@ describe('BrowserWindow module', () => {
expect(w.getBounds()).to.deep.equal(newBounds);
});
// Linux doesn't return any capture sources.
ifit(process.platform !== 'linux')('should not display a visible background', async () => {
// Linux and arm64 platforms (WOA and macOS) do not return any capture sources
ifit(process.platform !== 'linux' && process.arch !== 'arm64')('should not display a visible background', async () => {
const display = screen.getPrimaryDisplay();
const backgroundWindow = new BrowserWindow({
@ -4916,8 +4916,8 @@ describe('BrowserWindow module', () => {
describe('"backgroundColor" option', () => {
afterEach(closeAllWindows);
// Linux doesn't return any capture sources.
ifit(process.platform !== 'linux')('should display the set color', async () => {
// Linux/WOA doesn't return any capture sources.
ifit(process.platform !== 'linux' && (process.platform !== 'win32' || process.arch !== 'arm64'))('should display the set color', async () => {
const display = screen.getPrimaryDisplay();
const w = new BrowserWindow({