@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.d.ts CHANGED
@@ -4652,12 +4652,17 @@ declare const getImagePathAndName: (localImagePath: string) => {
4652
4652
  interface CurrentsOverrides {
4653
4653
  projectId: string;
4654
4654
  }
4655
+ interface PlaydashOverrides {
4656
+ projectKey: string;
4657
+ }
4655
4658
  interface Overrides {
4656
4659
  globalOverrides?: Record<string, unknown>;
4657
4660
  useOverrides?: Record<string, unknown>;
4658
4661
  useCustomProjects?: boolean;
4659
4662
  projectOverrides?: Record<string, unknown>[];
4660
4663
  currentsOverrides: CurrentsOverrides & Record<string, unknown>;
4664
+ playdashStagingOverrides?: PlaydashOverrides & Record<string, unknown>;
4665
+ playdashProductionOverrides: PlaydashOverrides & Record<string, unknown>;
4661
4666
  }
4662
4667
  /**
4663
4668
  *
package/index.js CHANGED
@@ -149069,18 +149069,48 @@ const currentsConfig = {
149069
149069
  recordKey: "PVHNwxEOySsdAeTc",
149070
149070
  tag: [process.env.TAG],
149071
149071
  };
149072
+ const playdashStagingConfig = {
149073
+ apiKey: process.env.PLAYDASH_STAGING_API_KEY,
149074
+ ciBuildId: process.env.NEETO_CI_JOB_ID,
149075
+ tags: process.env.TAG,
149076
+ baseURL: "https://connect.neetoplaydash.net",
149077
+ };
149078
+ const playdashProductionConfig = {
149079
+ apiKey: process.env.PLAYDASH_API_KEY,
149080
+ ciBuildId: process.env.NEETO_CI_JOB_ID,
149081
+ tags: process.env.TAG,
149082
+ };
149072
149083
  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;
149073
149084
  const definePlaywrightConfig = (overrides) => {
149074
- const { globalOverrides = {}, useOverrides = {}, useCustomProjects = false, projectOverrides = [], currentsOverrides = {}, } = overrides;
149085
+ const { globalOverrides = {}, useOverrides = {}, useCustomProjects = false, projectOverrides = [], currentsOverrides = {}, playdashStagingOverrides = {}, playdashProductionOverrides = {}, } = overrides;
149086
+ const reporter = [
149087
+ ["@currents/playwright", { ...currentsConfig, ...currentsOverrides }],
149088
+ ];
149089
+ if (!isEmpty$1(playdashStagingOverrides)) {
149090
+ reporter.push([
149091
+ "@bigbinary/neeto-playwright-reporter",
149092
+ {
149093
+ ...playdashStagingConfig,
149094
+ ...playdashStagingOverrides,
149095
+ },
149096
+ ]);
149097
+ }
149098
+ else {
149099
+ reporter.push([
149100
+ "@bigbinary/neeto-playwright-reporter",
149101
+ {
149102
+ ...playdashProductionConfig,
149103
+ ...playdashProductionOverrides,
149104
+ },
149105
+ ]);
149106
+ }
149075
149107
  return defineConfig({
149076
149108
  testDir: "./e2e/tests",
149077
149109
  fullyParallel: true,
149078
149110
  forbidOnly: isCI,
149079
149111
  retries: isCI ? 1 : 0,
149080
149112
  timeout: 5 * 60 * 1000,
149081
- reporter: isCI
149082
- ? [["@currents/playwright", { ...currentsConfig, ...currentsOverrides }]]
149083
- : [["line"]],
149113
+ reporter: isCI ? reporter : [["line"]],
149084
149114
  ...globalOverrides,
149085
149115
  use: {
149086
149116
  baseURL: process.env.BASE_URL,