mirror of
https://github.com//cppla/ServerStatus
synced 2026-09-20 16:00:15 +08:00
chore: complete 2.0.2 maintenance baseline
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
const path = require('path');
|
||||
const { defineConfig } = require('@playwright/test');
|
||||
|
||||
module.exports = defineConfig({
|
||||
testDir: './tests/webui',
|
||||
fullyParallel: false,
|
||||
workers: 1,
|
||||
timeout: 30_000,
|
||||
expect: { timeout: 5_000 },
|
||||
outputDir: path.join('output', 'playwright', 'results'),
|
||||
reporter: process.env.CI
|
||||
? [['line'], ['html', { outputFolder: 'output/playwright/report', open: 'never' }]]
|
||||
: 'line',
|
||||
use: {
|
||||
baseURL: 'http://127.0.0.1:18080',
|
||||
browserName: 'chromium',
|
||||
colorScheme: 'dark',
|
||||
screenshot: 'only-on-failure',
|
||||
trace: 'retain-on-failure'
|
||||
},
|
||||
webServer: {
|
||||
command: 'sh tests/run-webui-server.sh',
|
||||
url: 'http://127.0.0.1:18080/api/health',
|
||||
reuseExistingServer: false,
|
||||
timeout: 120_000
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user