@argos-ci/playwright 1.6.3 → 1.7.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.
- package/dist/reporter.mjs +4 -4
- package/package.json +4 -4
package/dist/reporter.mjs
CHANGED
|
@@ -111,10 +111,10 @@ async function createTempDirectory() {
|
|
|
111
111
|
});
|
|
112
112
|
return path;
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
async function getParallelFromConfig(config) {
|
|
115
115
|
if (!config.shard) return null;
|
|
116
116
|
if (config.shard.total === 1) return null;
|
|
117
|
-
const argosConfig = readConfig();
|
|
117
|
+
const argosConfig = await readConfig();
|
|
118
118
|
if (!argosConfig.parallelNonce) {
|
|
119
119
|
throw new Error("Playwright shard mode detected. Please specify ARGOS_PARALLEL_NONCE env variable. Read /parallel-testing");
|
|
120
120
|
}
|
|
@@ -122,7 +122,7 @@ const getParallelFromConfig = (config)=>{
|
|
|
122
122
|
total: config.shard.total,
|
|
123
123
|
nonce: argosConfig.parallelNonce
|
|
124
124
|
};
|
|
125
|
-
}
|
|
125
|
+
}
|
|
126
126
|
class ArgosReporter {
|
|
127
127
|
uploadDir;
|
|
128
128
|
config;
|
|
@@ -184,7 +184,7 @@ class ArgosReporter {
|
|
|
184
184
|
}
|
|
185
185
|
async onEnd(_result) {
|
|
186
186
|
if (!this.uploadToArgos) return;
|
|
187
|
-
const parallel = getParallelFromConfig(this.playwrightConfig);
|
|
187
|
+
const parallel = await getParallelFromConfig(this.playwrightConfig);
|
|
188
188
|
try {
|
|
189
189
|
const res = await upload({
|
|
190
190
|
files: [
|
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": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@argos-ci/browser": "1.3.0",
|
|
46
|
-
"@argos-ci/core": "1.
|
|
46
|
+
"@argos-ci/core": "1.5.0",
|
|
47
47
|
"@argos-ci/util": "1.2.0",
|
|
48
48
|
"chalk": "^5.3.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@argos-ci/cli": "1.0.
|
|
51
|
+
"@argos-ci/cli": "1.0.7",
|
|
52
52
|
"@argos-ci/playwright": "workspace:.",
|
|
53
53
|
"@playwright/test": "^1.38.1",
|
|
54
54
|
"@types/node": "^16.0.0"
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"test": "pnpm exec playwright test",
|
|
60
60
|
"e2e": "UPLOAD_TO_ARGOS=true pnpm run test"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "140f6598e42c90fcaa929fd213fadea15b0f5f3d"
|
|
63
63
|
}
|