@uuv/playwright 2.8.1 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -131,6 +131,11 @@ function extractArgs(argv) {
131
131
  const env = argv.env ? JSON.parse(argv.env.replace(/'/g, "\"")) : {};
132
132
  const targetTestFile = argv.targetTestFile ? argv.targetTestFile : null;
133
133
  console.debug("Variables: ");
134
+ // eslint-disable-next-line dot-notation
135
+ const baseUrl = process.env["UUV_BASE_URL"];
136
+ if (baseUrl) {
137
+ console.debug(` -> baseUrl: ${baseUrl}`);
138
+ }
134
139
  console.debug(` -> browser: ${browser}`);
135
140
  console.debug(` -> env: ${JSON.stringify(env)}`);
136
141
  if (targetTestFile) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uuv/playwright",
3
- "version": "2.8.1",
3
+ "version": "2.9.0",
4
4
  "type": "commonjs",
5
5
  "author": "Louis Fredice NJAKO MOLOM (https://github.com/luifr10) & Stanley SERVICAL (https://github.com/stanlee974)",
6
6
  "description": "A solution to facilitate the writing and execution of E2E tests understandable by any human being using cucumber(BDD) and playwright",
@@ -10,7 +10,7 @@ export default defineConfig({
10
10
  workers: 1,
11
11
  reporter: "@uuv/playwright/uuv-playwright-reporter",
12
12
  use: {
13
- baseURL: "http://localhost:4200",
13
+ baseURL: process.env.UUV_BASE_URL ? process.env.UUV_BASE_URL : "http://localhost:4200",
14
14
  trace: "on-first-retry",
15
15
  screenshot: "only-on-failure"
16
16
  },