CodeceptJS
CodeceptJS copied to clipboard
Playwright config override no longer respected in macOS Monterey update
What are you trying to achieve?
Override the config for '{ "helpers": {"Playwright": {"show": "true"}}}'
What do you get instead?
No browser window opens
After upgrading my machine to macOS Monterrey, I can no longer use the config override option to show the browser session during test runs.
Details
- CodeceptJS version: "^3.2.1"
- NodeJS Version: 14.18.2
- Operating System: macOS (Monterey)
- Playright version: 1.17.1
- Configuration file:
require('dotenv').config({ path: './.env.partner' });
const { setHeadlessWhen } = require('@codeceptjs/configure');
setHeadlessWhen(process.env.HEADLESS);
exports.config = {
output: './tmp/screenshots',
helpers: {
Playwright: {
url: 'http://localhost/',
show: false,
fullPageScreenshots: true,
video: true,
browser: 'chromium',
waitForAction: 500,
waitForNavigation: 'networkidle',
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36'
}
},
mocha: {},
gherkin: {
features: ['./test-folder/**/*_test.js']
},
name: 'acceptance_tests',
plugins: {
pauseOnFail: {},
retryFailedStep: {
enabled: true
},
tryTo: {
enabled: true
},
screenshotOnFail: {
enabled: true
}
}
};
This is inaccurate. I'm not quite sure how or why (because I changed nothing) but the config is now being respected.