@bigbinary/neeto-playwright-commons 1.4.4 → 1.4.5
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 +2 -4
- package/index.cjs.js.map +1 -1
- package/index.js +2 -4
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -7842,14 +7842,12 @@ var _a, _b;
|
|
|
7842
7842
|
main$1.exports.config({
|
|
7843
7843
|
path: `./e2e/config/.env.${(_a = process.env.TEST_ENV) !== null && _a !== void 0 ? _a : "development"}`,
|
|
7844
7844
|
});
|
|
7845
|
-
const storageState = "./e2e/auth/user.json";
|
|
7846
7845
|
const currentsConfig = {
|
|
7847
7846
|
ciBuildId: process.env.NEETO_CI_JOB_ID,
|
|
7848
7847
|
recordKey: "PVHNwxEOySsdAeTc",
|
|
7849
7848
|
tag: [process.env.TAG],
|
|
7850
7849
|
};
|
|
7851
|
-
const isCI = [
|
|
7852
|
-
!!process.env.NEETO_CI_JOB_ID;
|
|
7850
|
+
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;
|
|
7853
7851
|
const definePlaywrightConfig = (overrides) => {
|
|
7854
7852
|
const { globalOverrides = {}, useOverrides = {}, useCustomProjects = false, projectOverrides = [], currentsOverrides = {}, } = overrides;
|
|
7855
7853
|
return test.defineConfig({
|
|
@@ -7880,7 +7878,7 @@ const definePlaywrightConfig = (overrides) => {
|
|
|
7880
7878
|
},
|
|
7881
7879
|
{
|
|
7882
7880
|
name: "chromium",
|
|
7883
|
-
use: { ...test.devices["Desktop Chrome"], storageState },
|
|
7881
|
+
use: { ...test.devices["Desktop Chrome"], storageState: STORAGE_STATE },
|
|
7884
7882
|
dependencies: ["setup"],
|
|
7885
7883
|
},
|
|
7886
7884
|
{ name: "cleanup credentials", testMatch: "global.teardown.ts" },
|