@centreon/e2e-config 1.0.0-MON-212077-web-e2e-config-package.0 → 1.0.0-MON-217111-dev-26.10.x-web-e2e-config-package.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/cypress/e2e/plugins.ts +8 -7
- package/package.json +1 -1
package/cypress/e2e/plugins.ts
CHANGED
|
@@ -49,14 +49,15 @@ export default (
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
// Save the testRetries object
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
'retries.json'
|
|
57
|
-
);
|
|
52
|
+
// Save the testRetries object in the results directory of the consuming
|
|
53
|
+
// e2e project, wherever this package is installed.
|
|
54
|
+
const resultsDirectory = path.join(config.projectRoot, 'results');
|
|
55
|
+
fs.mkdirSync(resultsDirectory, { recursive: true });
|
|
58
56
|
|
|
59
|
-
fs.writeFileSync(
|
|
57
|
+
fs.writeFileSync(
|
|
58
|
+
path.join(resultsDirectory, 'retries.json'),
|
|
59
|
+
JSON.stringify(testRetries, null, 2)
|
|
60
|
+
);
|
|
60
61
|
});
|
|
61
62
|
|
|
62
63
|
return config;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@centreon/e2e-config",
|
|
3
3
|
"description": "Centreon shared Cypress e2e configuration, commands and tasks (QA-owned)",
|
|
4
|
-
"version": "1.0.0-MON-
|
|
4
|
+
"version": "1.0.0-MON-217111-dev-26.10.x-web-e2e-config-package.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/centreon/centreon.git",
|