mirror of
https://github.com/usebruno/bruno.git
synced 2025-08-16 06:08:42 +02:00
Playwright Codegen and CI setup
- 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`).
This commit is contained in:
13
playwright/electron.ts
Normal file
13
playwright/electron.ts
Normal file
@ -0,0 +1,13 @@
|
||||
const path = require('path');
|
||||
const { _electron: electron } = require('playwright');
|
||||
|
||||
const electronAppPath = path.join(__dirname, '../packages/bruno-electron');
|
||||
|
||||
exports.startApp = async () => {
|
||||
const app = await electron.launch({ args: [electronAppPath] });
|
||||
const context = await app.context();
|
||||
|
||||
app.process().stdout.on('data', (data) => console.log(data.toString()));
|
||||
app.process().stderr.on('data', (error) => console.error(error.toString()));
|
||||
return { app, context };
|
||||
};
|
Reference in New Issue
Block a user