opnsense-nordvpn-plugin/tests/ui/playwright.config.js

18 lines
389 B
JavaScript
Raw Normal View History

2026-08-07 00:29:07 +09:00
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',
},
});