@trackunit/iris-app-playwright 0.1.37 → 0.1.38
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/package.json
CHANGED
|
@@ -92,7 +92,16 @@ const defaultPlaywrightConfig = (options = {}) => {
|
|
|
92
92
|
const envOutputDirOverride = process.env.NX_PLAYWRIGHT_OUTPUT_DIR || outputDirOverride;
|
|
93
93
|
const buildOutputPath = (subPath) => {
|
|
94
94
|
if (envOutputDirOverride) {
|
|
95
|
-
|
|
95
|
+
// Namespace per project under the (per-executor) override dir. On CI several
|
|
96
|
+
// e2e projects run sequentially on one executor sharing this override
|
|
97
|
+
// (`dist/playwright/executor-N`). Playwright clears `outputDir` at the start
|
|
98
|
+
// of every run, so without the `relativePath` segment each project would
|
|
99
|
+
// wipe the previous project's artifacts (screenshots/video/trace/HAR/logs)
|
|
100
|
+
// — a failing project only kept them if it happened to run last. Nesting
|
|
101
|
+
// `outputDir` and the junit `outputFile` (and, via `setupPlugins`, the
|
|
102
|
+
// derived hars/logs) under the project path keeps every project's failure
|
|
103
|
+
// artifacts isolated. Mirrors the project-scoped local path below.
|
|
104
|
+
return path_1.default.join(dotsToNxRoot, envOutputDirOverride, relativePath, subPath);
|
|
96
105
|
}
|
|
97
106
|
return `${dotsToNxRoot}/dist/playwright/${relativePath}/${subPath}`;
|
|
98
107
|
};
|