@uuv/playwright 2.8.1 → 2.9.1

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.
package/README.md CHANGED
@@ -66,7 +66,7 @@ We can use the playwright engine(`@uuv/playwright`) to run test or cypress with
66
66
 
67
67
  ## Benefits
68
68
  - If used correctly, integrates accessibility from the development stage
69
- - A living documentation is possible because we propose an unified language for developers and non-developers with a [rich dictionary](category/step-definition) of ready-to-use sentences
69
+ - A living documentation is possible because we propose an unified language for developers and non-developers with a [rich dictionary](https://orange-opensource.github.io/uuv/docs/category/step-definition) of ready-to-use sentences
70
70
  - [@uuv/assistant](https://www.npmjs.com/package/@uuv/assistant) that facilitates the writing of tests by suggesting the most accessible sentences
71
71
  - [JetBrains Plugin](https://orange-opensource.github.io/uuv/docs/tools/uuv-jetbrains-plugin) that helps you to write and execute your UUV E2E tests from JetBrains IDEs
72
72
  - Integrates several runtime engines: Cypress / Playwright
@@ -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.1",
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",
@@ -44,7 +44,7 @@
44
44
  "@cucumber/cucumber": "9.6.0",
45
45
  "@cucumber/tag-expressions": "^6.0.0",
46
46
  "@playwright/test": "1.42.1",
47
- "@uuv/runner-commons": "2.8.1",
47
+ "@uuv/runner-commons": "2.8.2",
48
48
  "axe-core": "4.8.4",
49
49
  "axe-playwright": "2.0.1",
50
50
  "chalk": "4.1.2",
@@ -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
  },