Fix Playwright BASE_URL handling and failed UAT report tests

This commit is contained in:
A R R R Associates
2026-06-26 20:38:14 +05:30
parent 21c90749fb
commit ce9935c684
21 changed files with 98 additions and 53 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
const { defineConfig } = require('@playwright/test');
require('dotenv').config();
const { BASE_URL } = require('./fixtures/url');
module.exports = defineConfig({
testDir: './tests',
@@ -15,7 +16,7 @@ module.exports = defineConfig({
['list']
],
use: {
baseURL: process.env.BASE_URL || 'http://127.0.0.1:8000',
baseURL: BASE_URL,
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
video: 'retain-on-failure'