@argos-ci/playwright 6.3.10 → 6.4.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/dist/index.d.ts +1 -1
- package/dist/reporter.d.ts +6 -1
- package/dist/reporter.js +10 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Page, Frame,
|
|
1
|
+
import { Locator, Page, Frame, ElementHandle, PageScreenshotOptions, LocatorScreenshotOptions } from '@playwright/test';
|
|
2
2
|
import { StabilizationPluginOptions, ViewportOption } from '@argos-ci/browser';
|
|
3
3
|
import { ScreenshotMetadata } from '@argos-ci/util';
|
|
4
4
|
|
package/dist/reporter.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TestCase, Reporter, FullConfig, TestResult, FullResult } from '@playwright/test/reporter';
|
|
2
2
|
import { UploadParameters } from '@argos-ci/core';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -24,6 +24,11 @@ type ArgosReporterOptions<T extends string[] = string[]> = Omit<UploadParameters
|
|
|
24
24
|
* @default true
|
|
25
25
|
*/
|
|
26
26
|
uploadToArgos?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* If true, the reporter will not fail the test suite when the upload fails.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
ignoreUploadFailures?: boolean;
|
|
27
32
|
/**
|
|
28
33
|
* The name of the build in Argos.
|
|
29
34
|
* Can be a string or a function that receives the test case and returns the build name.
|
package/dist/reporter.js
CHANGED
|
@@ -362,8 +362,17 @@ var ArgosReporter = class {
|
|
|
362
362
|
console.log(chalk.green(`\u2705 Argos build created: ${res.build.url}`));
|
|
363
363
|
}
|
|
364
364
|
} catch (error) {
|
|
365
|
+
console.error(chalk.red(`\u274C Error while creating the Argos build`));
|
|
365
366
|
console.error(error);
|
|
366
|
-
|
|
367
|
+
if (!this.config.ignoreUploadFailures) {
|
|
368
|
+
return { status: "failed" };
|
|
369
|
+
} else {
|
|
370
|
+
console.warn(
|
|
371
|
+
chalk.yellow(
|
|
372
|
+
"\u26A0\uFE0F Upload failure ignored due to ignoreUploadFailures option"
|
|
373
|
+
)
|
|
374
|
+
);
|
|
375
|
+
}
|
|
367
376
|
}
|
|
368
377
|
return;
|
|
369
378
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/playwright",
|
|
3
3
|
"description": "Playwright SDK for visual testing with Argos.",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.4.1",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@argos-ci/browser": "5.1.2",
|
|
51
|
-
"@argos-ci/core": "5.0
|
|
51
|
+
"@argos-ci/core": "5.1.0",
|
|
52
52
|
"@argos-ci/util": "3.2.0",
|
|
53
53
|
"chalk": "^5.6.2",
|
|
54
54
|
"debug": "^4.4.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@playwright/test": "^1.
|
|
57
|
+
"@playwright/test": "^1.58.1",
|
|
58
58
|
"@types/debug": "^4.1.12",
|
|
59
59
|
"@types/node": "catalog:",
|
|
60
60
|
"vitest": "catalog:"
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"lint": "eslint .",
|
|
70
70
|
"test": "vitest src"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "6887164dc0ccd5b2a3dd1d7d9e778cdbbdd2d534"
|
|
73
73
|
}
|