mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 06:22:28 +03:00
35 lines
1.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
/**
|
|
* See https://playwright.dev/docs/test-configuration.
|
|
*/
|
|
export default defineConfig({
|
|
testDir: './e2e/playwright',
|
|
testMatch: /(.+\.)?(test|spec)\.[jt]s/,
|
|
// reporter: 'html',
|
|
reporter: process.env.CI
|
|
? [['dot'], ['json', { outputFile: 'test-results.json' }]]
|
|
: [['list'], ['json', { outputFile: 'test-results.json' }], ['html', { open: 'on-failure' }]],
|
|
// globalSetup: './e2e/playwright/globalSetup.ts',
|
|
use: {
|
|
launchOptions: {
|
|
executablePath: '/home/ndo/.nix-profile/bin/chromium'
|
|
},
|
|
// baseURL: 'http://localhost:3000',
|
|
trace: 'on-first-retry'
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: 'Google Chrome',
|
|
use: { ...devices['Desktop Chrome'], channel: 'chrome' } // or 'chrome-beta'
|
|
}
|
|
],
|
|
|
|
webServer: {
|
|
command: 'pnpm dev --mode testing',
|
|
url: 'http://localhost:1420',
|
|
reuseExistingServer: !process.env.CI
|
|
}
|
|
});
|