8 lines
443 B
JavaScript
8 lines
443 B
JavaScript
import { defineConfig } from '@playwright/test';
|
|
import { existsSync } from 'node:fs';
|
|
export default defineConfig({
|
|
testDir:'./tests/browser',
|
|
fullyParallel:false,
|
|
use:{baseURL:process.env.TEST_SITE_URL || 'http://localhost:3100',headless:true,launchOptions:{executablePath:process.env.CHROMIUM_PATH || (existsSync('/run/current-system/sw/bin/chromium') ? '/run/current-system/sw/bin/chromium' : undefined),args:['--no-sandbox']}},
|
|
});
|