@red-hat-developer-hub/e2e-test-utils 1.1.36 → 1.1.38

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.
@@ -1 +1 @@
1
- {"version":3,"file":"base-config.d.ts","sourceRoot":"","sources":["../../src/playwright/base-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAG1B;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,oBA6BxB,CAAC;AAEF;;;;;GAKG;AAEH,wBAAgB,YAAY,CAC1B,SAAS,GAAE,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAM,GACrD,oBAAoB,CAKtB"}
1
+ {"version":3,"file":"base-config.d.ts","sourceRoot":"","sources":["../../src/playwright/base-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAG1B;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,oBA8BxB,CAAC;AAEF;;;;;GAKG;AAEH,wBAAgB,YAAY,CAC1B,SAAS,GAAE,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAM,GACrD,oBAAoB,CAKtB"}
@@ -15,6 +15,7 @@ export const baseConfig = {
15
15
  ["list"],
16
16
  ["html", { outputFolder: "playwright-report", open: "on-failure" }],
17
17
  ["json", { outputFile: "playwright-report/results.json" }],
18
+ ["junit", { outputFile: "playwright-report/junit-results.xml" }],
18
19
  [resolve(import.meta.dirname, "../playwright/teardown-reporter.js")],
19
20
  ],
20
21
  use: {
@@ -5,6 +5,7 @@ type RHDHDeploymentTestFixtures = {
5
5
  rhdh: RHDHDeployment;
6
6
  uiHelper: UIhelper;
7
7
  loginHelper: LoginHelper;
8
+ autoAnnotations: void;
8
9
  };
9
10
  type RHDHDeploymentWorkerFixtures = {
10
11
  rhdhDeploymentWorker: RHDHDeployment;
@@ -1 +1 @@
1
- {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../src/playwright/fixtures/test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAEhE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAIzC,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAEF,KAAK,4BAA4B,GAAG;IAClC,oBAAoB,EAAE,cAAc,CAAC;CACtC,CAAC;AAkDF,eAAO,MAAM,IAAI;;CAEf,CAAC;AAEH,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../src/playwright/fixtures/test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAEhE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAKzC,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,EAAE,IAAI,CAAC;CACvB,CAAC;AAEF,KAAK,4BAA4B,GAAG;IAClC,oBAAoB,EAAE,cAAc,CAAC;CACtC,CAAC;AAgEF,eAAO,MAAM,IAAI;;CAEf,CAAC;AAEH,cAAc,kBAAkB,CAAC"}
@@ -3,6 +3,7 @@ import { test as base } from "@playwright/test";
3
3
  import { LoginHelper, UIhelper } from "../helpers/index.js";
4
4
  import { runOnce } from "../run-once.js";
5
5
  import { $ } from "../../utils/bash.js";
6
+ import { WorkspacePaths } from "../../utils/workspace-paths.js";
6
7
  import path from "path";
7
8
  const baseTest = base.extend({
8
9
  rhdhDeploymentWorker: [
@@ -44,6 +45,17 @@ const baseTest = base.extend({
44
45
  },
45
46
  { scope: "test" },
46
47
  ],
48
+ autoAnnotations: [
49
+ // eslint-disable-next-line no-empty-pattern
50
+ async ({}, use, testInfo) => {
51
+ testInfo.annotations.push({
52
+ type: "workspace",
53
+ description: path.basename(WorkspacePaths.workspaceRoot),
54
+ }, { type: "project", description: testInfo.project.name });
55
+ await use();
56
+ },
57
+ { auto: true, scope: "test" },
58
+ ],
47
59
  });
48
60
  export const test = Object.assign(baseTest, {
49
61
  runOnce,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@red-hat-developer-hub/e2e-test-utils",
3
- "version": "1.1.36",
3
+ "version": "1.1.38",
4
4
  "description": "Test utilities for RHDH E2E tests",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {