18 lines
389 B
JavaScript
18 lines
389 B
JavaScript
const { defineConfig } = require('@playwright/test');
|
|
|
|
const baseURL = process.env.OPNSENSE_UI_BASE_URL;
|
|
|
|
if (!baseURL) {
|
|
throw new Error('Set OPNSENSE_UI_BASE_URL to the disposable OPNsense WebGUI URL.');
|
|
}
|
|
|
|
module.exports = defineConfig({
|
|
testDir: './specs',
|
|
timeout: 30000,
|
|
workers: 1,
|
|
use: {
|
|
baseURL,
|
|
ignoreHTTPSErrors: true,
|
|
trace: 'retain-on-failure',
|
|
},
|
|
});
|