@bigbinary/neeto-playwright-commons 1.4.2 → 1.4.3
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 +17 -15
- package/index.cjs.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +17 -15
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -365,6 +365,7 @@ interface CurrentsOverrides {
|
|
|
365
365
|
interface Overrides {
|
|
366
366
|
globalOverrides?: Record<string, unknown>;
|
|
367
367
|
useOverrides?: Record<string, unknown>;
|
|
368
|
+
useCustomProjects?: boolean;
|
|
368
369
|
projectOverrides?: Record<string, unknown>[];
|
|
369
370
|
currentsOverrides: CurrentsOverrides & Record<string, unknown>;
|
|
370
371
|
}
|
package/index.js
CHANGED
|
@@ -7818,7 +7818,7 @@ const currentsConfig = {
|
|
|
7818
7818
|
const isCI = ["staging", "review"].includes((_b = process.env.TEST_ENV) !== null && _b !== void 0 ? _b : "development") &&
|
|
7819
7819
|
!!process.env.NEETO_CI_JOB_ID;
|
|
7820
7820
|
const definePlaywrightConfig = (overrides) => {
|
|
7821
|
-
const { globalOverrides = {}, useOverrides = {}, projectOverrides = [], currentsOverrides = {}, } = overrides;
|
|
7821
|
+
const { globalOverrides = {}, useOverrides = {}, useCustomProjects = false, projectOverrides = [], currentsOverrides = {}, } = overrides;
|
|
7822
7822
|
return defineConfig({
|
|
7823
7823
|
testDir: "./e2e/tests",
|
|
7824
7824
|
fullyParallel: true,
|
|
@@ -7837,20 +7837,22 @@ const definePlaywrightConfig = (overrides) => {
|
|
|
7837
7837
|
screenshot: "on",
|
|
7838
7838
|
...useOverrides,
|
|
7839
7839
|
},
|
|
7840
|
-
projects:
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7840
|
+
projects: useCustomProjects
|
|
7841
|
+
? projectOverrides
|
|
7842
|
+
: [
|
|
7843
|
+
{
|
|
7844
|
+
name: "setup",
|
|
7845
|
+
testMatch: "global.setup.ts",
|
|
7846
|
+
teardown: "cleanup credentials",
|
|
7847
|
+
},
|
|
7848
|
+
{
|
|
7849
|
+
name: "chromium",
|
|
7850
|
+
use: { ...devices["Desktop Chrome"], storageState },
|
|
7851
|
+
dependencies: ["setup"],
|
|
7852
|
+
},
|
|
7853
|
+
{ name: "cleanup credentials", testMatch: "global.teardown.ts" },
|
|
7854
|
+
...projectOverrides,
|
|
7855
|
+
],
|
|
7854
7856
|
});
|
|
7855
7857
|
};
|
|
7856
7858
|
|