gitbutler/app/playwright.config.ts

26 lines
563 B
TypeScript
Raw Normal View History

2024-05-02 15:55:41 +03:00
import { defineConfig, devices } from '@playwright/test';
/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
2024-05-04 20:29:50 +03:00
testDir: './e2e/playwright',
testMatch: /(.+\.)?(test|spec)\.[jt]s/,
projects: [
{
name: 'Google Chrome',
2024-05-05 19:56:09 +03:00
use: { ...devices['Desktop Chrome'] }
2024-05-04 20:29:50 +03:00
}
],
expect: {
timeout: 20 * 1000,
},
2024-05-05 21:05:03 +03:00
use: {
trace: 'retain-on-failure',
},
2024-05-04 20:29:50 +03:00
webServer: {
2024-05-05 19:33:40 +03:00
command: 'pnpm test:e2e:run',
2024-05-04 20:29:50 +03:00
url: 'http://localhost:1420',
}
2024-05-02 15:55:41 +03:00
});