@argos-ci/playwright 3.5.3 → 3.5.4-alpha.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.
@@ -68,7 +68,7 @@ declare class ArgosReporter implements Reporter {
68
68
  getRootUploadDirectory(): Promise<string>;
69
69
  onBegin(config: FullConfig, _suite: Suite): void;
70
70
  onTestEnd(test: TestCase, result: TestResult): Promise<void>;
71
- onEnd(_result: FullResult): Promise<{
71
+ onEnd(result: FullResult): Promise<{
72
72
  status: "failed";
73
73
  } | undefined>;
74
74
  }
package/dist/reporter.mjs CHANGED
@@ -240,7 +240,7 @@ class ArgosReporter {
240
240
  }
241
241
  }));
242
242
  }
243
- async onEnd(_result) {
243
+ async onEnd(result) {
244
244
  debug("ArgosReporter:onEnd");
245
245
  const rootUploadDir = await this.getRootUploadDirectory();
246
246
  if (!this.uploadToArgos) {
@@ -261,7 +261,17 @@ class ArgosReporter {
261
261
  "**/*.png"
262
262
  ],
263
263
  parallel: parallel ?? undefined,
264
- ...this.config
264
+ ...this.config,
265
+ buildName: undefined,
266
+ metadata: {
267
+ testReport: {
268
+ status: result.status,
269
+ stats: {
270
+ startTime: result.startTime.toISOString(),
271
+ duration: result.duration
272
+ }
273
+ }
274
+ }
265
275
  };
266
276
  try {
267
277
  if (checkIsDynamicBuildName(buildNameConfig)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/playwright",
3
3
  "description": "Visual testing solution to avoid visual regression. Playwright commands and utilities for Argos visual testing.",
4
- "version": "3.5.3",
4
+ "version": "3.5.4-alpha.1+95edc87",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -42,14 +42,14 @@
42
42
  "node": ">=18.0.0"
43
43
  },
44
44
  "dependencies": {
45
- "@argos-ci/browser": "2.1.3",
46
- "@argos-ci/core": "2.7.0",
47
- "@argos-ci/util": "2.1.1",
45
+ "@argos-ci/browser": "2.1.4-alpha.15+95edc87",
46
+ "@argos-ci/core": "2.7.1-alpha.1+95edc87",
47
+ "@argos-ci/util": "2.1.2-alpha.15+95edc87",
48
48
  "chalk": "^5.3.0",
49
49
  "debug": "^4.3.6"
50
50
  },
51
51
  "devDependencies": {
52
- "@argos-ci/cli": "2.4.1",
52
+ "@argos-ci/cli": "2.4.2-alpha.1+95edc87",
53
53
  "@argos-ci/playwright": "workspace:.",
54
54
  "@playwright/test": "^1.46.1",
55
55
  "@types/debug": "^4.1.12",
@@ -61,5 +61,5 @@
61
61
  "test": "pnpm exec -- playwright test",
62
62
  "e2e": "UPLOAD_TO_ARGOS=true pnpm run test"
63
63
  },
64
- "gitHead": "d5b9650164fd482ee2b4dbf5c93fcef591f447eb"
64
+ "gitHead": "95edc87797d535e037f7c4c9da3c0262b8809361"
65
65
  }