Add OPNsense WebGUI regression tests
This commit is contained in:
parent
98f9993362
commit
1ef0b80415
1 changed files with 323 additions and 0 deletions
18
tests/ui/playwright.config.js
Normal file
18
tests/ui/playwright.config.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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',
|
||||
},
|
||||
});
|
||||
Loading…
Reference in a new issue