@bigbinary/neeto-playwright-commons 1.9.14 → 1.9.16

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;
@@ -2180,6 +2179,7 @@ interface MergeTagsViaUIProps {
2180
2179
  sourceTagName: string;
2181
2180
  destinationTagName: string;
2182
2181
  mergeTagsLabel: string;
2182
+ tagsBreadcrumbLabel: string;
2183
2183
  }
2184
2184
  declare class TagsPage {
2185
2185
  page: Page;
@@ -2223,7 +2223,8 @@ declare class TagsPage {
2223
2223
  mergeTagsViaUI: ({
2224
2224
  sourceTagName,
2225
2225
  destinationTagName,
2226
- mergeTagsLabel
2226
+ mergeTagsLabel,
2227
+ tagsBreadcrumbLabel
2227
2228
  }: MergeTagsViaUIProps) => Promise<void>;
2228
2229
  }
2229
2230
  /**
@@ -3229,7 +3230,6 @@ declare const TAGS_SELECTORS: {
3229
3230
  metaDataCard: string;
3230
3231
  metaDataBlock: string;
3231
3232
  tagContainer: string;
3232
- ticketTagsBreadcrumb: string;
3233
3233
  };
3234
3234
  /**
3235
3235
  *
package/index.js CHANGED
@@ -15326,7 +15326,6 @@ const TAGS_SELECTORS = {
15326
15326
  metaDataCard: "metadata-card",
15327
15327
  metaDataBlock: "metadata-block",
15328
15328
  tagContainer: "tag-container",
15329
- ticketTagsBreadcrumb: "ticket-tags-breadcrumb",
15330
15329
  };
15331
15330
  const MERGE_TAGS_SELECTORS = {
15332
15331
  mergeTagsButton: "neeto-tags-merge-tags-button",
@@ -15428,7 +15427,7 @@ class TagsPage {
15428
15427
  .filter({ hasText: tagName })
15429
15428
  .click();
15430
15429
  };
15431
- this.mergeTagsViaUI = async ({ sourceTagName, destinationTagName, mergeTagsLabel, }) => {
15430
+ this.mergeTagsViaUI = async ({ sourceTagName, destinationTagName, mergeTagsLabel, tagsBreadcrumbLabel, }) => {
15432
15431
  await this.searchAndSelect({
15433
15432
  selector: MERGE_TAGS_SELECTORS.sourceSearchTextField,
15434
15433
  tagName: sourceTagName,
@@ -15443,7 +15442,7 @@ class TagsPage {
15443
15442
  await expect(this.page.getByTestId(COMMON_SELECTORS.modalHeader)).toHaveText(mergeTagsLabel);
15444
15443
  await this.page.getByTestId(MERGE_TAGS_SELECTORS.proceedButton).click();
15445
15444
  await this.neetoPlaywrightUtilities.verifySuccessToast();
15446
- await this.page.getByTestId(TAGS_SELECTORS.ticketTagsBreadcrumb).click();
15445
+ await this.page.getByTestId(tagsBreadcrumbLabel).click();
15447
15446
  await expect(this.page.getByText(sourceTagName)).toBeHidden();
15448
15447
  await expect(this.page.getByText(destinationTagName)).toBeVisible();
15449
15448
  };