mirror of
https://github.com/usebruno/bruno.git
synced 2025-08-07 10:59:52 +02:00
- Trace will capture snapshots now - Added ability to add init Electron user-data, preferences and other app settings. - Improved test Fixtures - Use tempdir for Electron user-data - Ability to reuse app instance for a given init user-data by placing them in a folder(`pageWithUserData` Fixture) - Ability to create tests with fresh user-data(`newPage` Fixture) - Improved logging - Improved the env vars to customize the Electron user-data-path
40 lines
801 B
TypeScript
40 lines
801 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
const reporter: any[] = [['list'], ['html']];
|
|
|
|
if (process.env.CI) {
|
|
reporter.push(['github']);
|
|
}
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e-tests',
|
|
fullyParallel: false,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 1 : 0,
|
|
workers: process.env.CI ? undefined : 1,
|
|
reporter,
|
|
|
|
use: {
|
|
trace: process.env.CI ? 'on-first-retry' : 'on'
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: 'Bruno Electron App'
|
|
}
|
|
],
|
|
|
|
webServer: [
|
|
{
|
|
command: 'npm run dev:web',
|
|
url: 'http://localhost:3000',
|
|
reuseExistingServer: !process.env.CI
|
|
},
|
|
{
|
|
command: 'npm start --workspace=packages/bruno-tests',
|
|
url: 'http://localhost:8081/ping',
|
|
reuseExistingServer: !process.env.CI
|
|
}
|
|
]
|
|
});
|