22 lines
562 B
JavaScript
22 lines
562 B
JavaScript
|
|
const { defineConfig } = require('@playwright/test');
|
||
|
|
|
||
|
|
module.exports = defineConfig({
|
||
|
|
testDir: './tests',
|
||
|
|
timeout: 90000,
|
||
|
|
retries: 0,
|
||
|
|
use: {
|
||
|
|
baseURL: 'http://localhost:8081',
|
||
|
|
headless: true,
|
||
|
|
viewport: { width: 1280, height: 900 },
|
||
|
|
screenshot: 'only-on-failure',
|
||
|
|
},
|
||
|
|
webServer: {
|
||
|
|
command: 'php -d upload_max_filesize=500M -d post_max_size=512M -d memory_limit=768M -S localhost:8081 router.php',
|
||
|
|
port: 8081,
|
||
|
|
reuseExistingServer: true,
|
||
|
|
},
|
||
|
|
projects: [
|
||
|
|
{ name: 'chromium', use: { browserName: 'chromium' } },
|
||
|
|
],
|
||
|
|
});
|