Fix Playwright BASE_URL handling and failed UAT report tests
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user