Skip to content

Commit

Permalink
spec: fix platform failure condition
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere authored and miniak committed Jun 30, 2022
1 parent 9cb0272 commit 43706c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec-main/api-browser-view-spec.ts
Expand Up @@ -62,7 +62,8 @@ describe('BrowserView module', () => {
}).to.throw(/conversion failure/);
});

ifit(process.platform !== 'linux')('sets the background color to transparent if none is set', async () => {
// Linux and arm64 platforms (WOA and macOS) do not return any capture sources
ifit(process.platform !== 'linux' && process.arch !== 'arm64')('sets the background color to transparent if none is set', async () => {
const display = screen.getPrimaryDisplay();
const WINDOW_BACKGROUND_COLOR = '#55ccbb';

Expand All @@ -85,7 +86,8 @@ describe('BrowserView module', () => {
expect(areColorsSimilar(centerColor, WINDOW_BACKGROUND_COLOR)).to.be.true();
});

ifit(process.platform !== 'linux')('successfully applies the background color', async () => {
// Linux and arm64 platforms (WOA and macOS) do not return any capture sources
ifit(process.platform !== 'linux' && process.arch !== 'arm64')('successfully applies the background color', async () => {
const WINDOW_BACKGROUND_COLOR = '#55ccbb';
const VIEW_BACKGROUND_COLOR = '#ff00ff';
const display = screen.getPrimaryDisplay();
Expand Down

0 comments on commit 43706c1

Please sign in to comment.