Add OPNsense WebGUI regression tests

This commit is contained in:
ms2k 2026-08-07 00:29:07 +09:00
commit 1ef0b80415

View 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',
},
});