@bigbinary/neeto-playwright-commons 1.9.16 → 1.9.18
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/index.cjs.js +34 -4
- package/index.cjs.js.map +1 -1
- package/index.d.ts +5 -0
- package/index.js +34 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -149115,18 +149115,48 @@ const currentsConfig = {
|
|
|
149115
149115
|
recordKey: "PVHNwxEOySsdAeTc",
|
|
149116
149116
|
tag: [process.env.TAG],
|
|
149117
149117
|
};
|
|
149118
|
+
const playdashStagingConfig = {
|
|
149119
|
+
apiKey: process.env.PLAYDASH_STAGING_API_KEY,
|
|
149120
|
+
ciBuildId: process.env.NEETO_CI_JOB_ID,
|
|
149121
|
+
tags: process.env.TAG,
|
|
149122
|
+
baseURL: "https://connect.neetoplaydash.net",
|
|
149123
|
+
};
|
|
149124
|
+
const playdashProductionConfig = {
|
|
149125
|
+
apiKey: process.env.PLAYDASH_API_KEY,
|
|
149126
|
+
ciBuildId: process.env.NEETO_CI_JOB_ID,
|
|
149127
|
+
tags: process.env.TAG,
|
|
149128
|
+
};
|
|
149118
149129
|
const isCI = [ENVIRONMENT.staging, ENVIRONMENT.review].includes((_b = process.env.TEST_ENV) !== null && _b !== void 0 ? _b : ENVIRONMENT.development) && !!process.env.NEETO_CI_JOB_ID;
|
|
149119
149130
|
const definePlaywrightConfig = (overrides) => {
|
|
149120
|
-
const { globalOverrides = {}, useOverrides = {}, useCustomProjects = false, projectOverrides = [], currentsOverrides = {}, } = overrides;
|
|
149131
|
+
const { globalOverrides = {}, useOverrides = {}, useCustomProjects = false, projectOverrides = [], currentsOverrides = {}, playdashStagingOverrides = {}, playdashProductionOverrides = {}, } = overrides;
|
|
149132
|
+
const reporter = [
|
|
149133
|
+
["@currents/playwright", { ...currentsConfig, ...currentsOverrides }],
|
|
149134
|
+
];
|
|
149135
|
+
if (!ramda.isEmpty(playdashStagingOverrides)) {
|
|
149136
|
+
reporter.push([
|
|
149137
|
+
"@bigbinary/neeto-playwright-reporter",
|
|
149138
|
+
{
|
|
149139
|
+
...playdashStagingConfig,
|
|
149140
|
+
...playdashStagingOverrides,
|
|
149141
|
+
},
|
|
149142
|
+
]);
|
|
149143
|
+
}
|
|
149144
|
+
else {
|
|
149145
|
+
reporter.push([
|
|
149146
|
+
"@bigbinary/neeto-playwright-reporter",
|
|
149147
|
+
{
|
|
149148
|
+
...playdashProductionConfig,
|
|
149149
|
+
...playdashProductionOverrides,
|
|
149150
|
+
},
|
|
149151
|
+
]);
|
|
149152
|
+
}
|
|
149121
149153
|
return test$1.defineConfig({
|
|
149122
149154
|
testDir: "./e2e/tests",
|
|
149123
149155
|
fullyParallel: true,
|
|
149124
149156
|
forbidOnly: isCI,
|
|
149125
149157
|
retries: isCI ? 1 : 0,
|
|
149126
149158
|
timeout: 5 * 60 * 1000,
|
|
149127
|
-
reporter: isCI
|
|
149128
|
-
? [["@currents/playwright", { ...currentsConfig, ...currentsOverrides }]]
|
|
149129
|
-
: [["line"]],
|
|
149159
|
+
reporter: isCI ? reporter : [["line"]],
|
|
149130
149160
|
...globalOverrides,
|
|
149131
149161
|
use: {
|
|
149132
149162
|
baseURL: process.env.BASE_URL,
|