@bigbinary/neeto-playwright-commons 1.9.15 → 1.9.17

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
@@ -784,13 +784,12 @@ declare class HelpAndProfilePage {
784
784
  */
785
785
  verifyLogoutV2: () => Promise<void>;
786
786
  }
787
- type Integration = "dailyco" | "github" | "google-calendar" | "google-analytics" | "google-sheets" | "microsoft-teams" | "neeto-chat" | "neeto-crm" | "slack" | "twilio" | "whereby" | "zapier" | "zoom";
788
787
  type IntegrationStatus = "connected" | "disconnected";
789
788
  type PartialInterceptMultipleResponsesParams$1 = Partial<InterceptMultipleResponsesParams>;
790
789
  interface IntegrationBaseParams {
791
790
  page: Page;
792
791
  neetoPlaywrightUtilities: CustomCommands;
793
- integration: Integration;
792
+ integration: string;
794
793
  connectedHeader?: string;
795
794
  connectHeader?: string;
796
795
  pageloaderTimeout?: number;
@@ -801,7 +800,7 @@ declare class IntegrationBase {
801
800
  readonly page: Page;
802
801
  readonly neetoPlaywrightUtilities: CustomCommands;
803
802
  readonly t: TFunction;
804
- readonly integration: Integration;
803
+ readonly integration: string;
805
804
  readonly integrationCard: Locator;
806
805
  readonly connectHeader: string;
807
806
  readonly connectedHeader: string;
@@ -4653,12 +4652,17 @@ declare const getImagePathAndName: (localImagePath: string) => {
4653
4652
  interface CurrentsOverrides {
4654
4653
  projectId: string;
4655
4654
  }
4655
+ interface PlaydashOverrides {
4656
+ projectKey: string;
4657
+ }
4656
4658
  interface Overrides {
4657
4659
  globalOverrides?: Record<string, unknown>;
4658
4660
  useOverrides?: Record<string, unknown>;
4659
4661
  useCustomProjects?: boolean;
4660
4662
  projectOverrides?: Record<string, unknown>[];
4661
4663
  currentsOverrides: CurrentsOverrides & Record<string, unknown>;
4664
+ playdashStagingOverrides?: PlaydashOverrides & Record<string, unknown>;
4665
+ playdashProductionOverrides: PlaydashOverrides & Record<string, unknown>;
4662
4666
  }
4663
4667
  /**
4664
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,