mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-16 04:11:29 +00: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`).
26 lines
507 B
TypeScript
26 lines
507 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e-tests',
|
|
fullyParallel: false,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: process.env.CI ? undefined : 1,
|
|
reporter: 'html',
|
|
use: {
|
|
trace: 'on-first-retry'
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: 'Bruno Electron App'
|
|
}
|
|
],
|
|
|
|
webServer: {
|
|
command: 'npm run dev:web',
|
|
url: 'http://localhost:3000',
|
|
reuseExistingServer: !process.env.CI
|
|
}
|
|
});
|