@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.js
CHANGED
|
@@ -7809,14 +7809,12 @@ var _a, _b;
|
|
|
7809
7809
|
main$1.exports.config({
|
|
7810
7810
|
path: `./e2e/config/.env.${(_a = process.env.TEST_ENV) !== null && _a !== void 0 ? _a : "development"}`,
|
|
7811
7811
|
});
|
|
7812
|
-
const storageState = "./e2e/auth/user.json";
|
|
7813
7812
|
const currentsConfig = {
|
|
7814
7813
|
ciBuildId: process.env.NEETO_CI_JOB_ID,
|
|
7815
7814
|
recordKey: "PVHNwxEOySsdAeTc",
|
|
7816
7815
|
tag: [process.env.TAG],
|
|
7817
7816
|
};
|
|
7818
|
-
const isCI = [
|
|
7819
|
-
!!process.env.NEETO_CI_JOB_ID;
|
|
7817
|
+
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;
|
|
7820
7818
|
const definePlaywrightConfig = (overrides) => {
|
|
7821
7819
|
const { globalOverrides = {}, useOverrides = {}, useCustomProjects = false, projectOverrides = [], currentsOverrides = {}, } = overrides;
|
|
7822
7820
|
return defineConfig({
|
|
@@ -7847,7 +7845,7 @@ const definePlaywrightConfig = (overrides) => {
|
|
|
7847
7845
|
},
|
|
7848
7846
|
{
|
|
7849
7847
|
name: "chromium",
|
|
7850
|
-
use: { ...devices["Desktop Chrome"], storageState },
|
|
7848
|
+
use: { ...devices["Desktop Chrome"], storageState: STORAGE_STATE },
|
|
7851
7849
|
dependencies: ["setup"],
|
|
7852
7850
|
},
|
|
7853
7851
|
{ name: "cleanup credentials", testMatch: "global.teardown.ts" },
|