Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't require unnecessary OS permissions on MacOS #7028

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/runner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,12 @@ export default class Runner extends EventEmitter {

async _validateBrowsers () {
const browsers = this.configuration.getOption(OPTION_NAMES.browsers);
const disableScreenshots = this.configuration.getOption(OPTION_NAMES.disableScreenshots);

if (!browsers || Array.isArray(browsers) && !browsers.length)
throw new GeneralError(RUNTIME_ERRORS.browserNotSet);

if (OS.mac)
if (OS.mac && !disableScreenshots)
await this._checkRequiredPermissions(browsers);

if (OS.linux && !detectDisplay())
Expand Down