@argos-ci/playwright 3.5.2 → 3.5.4-alpha.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.
@@ -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) {
@@ -281,7 +281,16 @@ class ArgosReporter {
281
281
  const res = await upload({
282
282
  ...uploadOptions,
283
283
  root: uploadDir,
284
- buildName
284
+ buildName,
285
+ metadata: {
286
+ testReport: {
287
+ status: result.status,
288
+ stats: {
289
+ startTime: result.startTime.toISOString(),
290
+ duration: result.duration
291
+ }
292
+ }
293
+ }
285
294
  });
286
295
  console.log(chalk.green(`✅ Argos "${buildName}" build created: ${res.build.url}`));
287
296
  }
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.2",
4
+ "version": "3.5.4-alpha.0+4ed9b25",
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.6.0",
47
- "@argos-ci/util": "2.1.1",
45
+ "@argos-ci/browser": "2.1.4-alpha.14+4ed9b25",
46
+ "@argos-ci/core": "2.7.1-alpha.0+4ed9b25",
47
+ "@argos-ci/util": "2.1.2-alpha.14+4ed9b25",
48
48
  "chalk": "^5.3.0",
49
49
  "debug": "^4.3.6"
50
50
  },
51
51
  "devDependencies": {
52
- "@argos-ci/cli": "2.4.0",
52
+ "@argos-ci/cli": "2.4.2-alpha.0+4ed9b25",
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": "fd9935c114e6a948eca173127947cebcf6381007"
64
+ "gitHead": "4ed9b253b5037f2111d44bcd41fe3467371c41e3"
65
65
  }