mirror of
https://github.com/usebruno/bruno.git
synced 2025-08-10 03:28:48 +02:00
- Improved the Codegen setup - Removed the app-launch related boilerplate from tests - Enable recording mode by default - Option to provide the test file name to save the recording - Added GitHub workflow to run Playwright tests with Electron in Headless mode(mocking display using `xvfb`).
14 lines
438 B
TypeScript
14 lines
438 B
TypeScript
const path = require('path');
|
|
const { startApp } = require('./electron.ts');
|
|
|
|
async function main() {
|
|
const { app, context } = await startApp();
|
|
let outputFile = process.argv[2]?.trim();
|
|
if (outputFile && !/\.(ts|js)$/.test(outputFile)) {
|
|
outputFile = path.join(__dirname, '../e2e-tests/', outputFile + '.spec.ts');
|
|
}
|
|
await context._enableRecorder({ language: 'playwright-test', mode: 'recording', outputFile });
|
|
}
|
|
|
|
main();
|