@bigbinary/neeto-playwright-commons 3.1.3 → 3.1.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.d.ts CHANGED
@@ -7766,6 +7766,9 @@ declare const WEBHOOK_SELECTORS: {
7766
7766
  eventsSelectError: string;
7767
7767
  regenerateSecret: string;
7768
7768
  deleteSecret: string;
7769
+ deliveryRequestHeader: string;
7770
+ deliveryResponseBody: string;
7771
+ eventErrorText: string;
7769
7772
  editWebhookButton: string;
7770
7773
  deleteWebhookButton: string;
7771
7774
  };
@@ -8002,6 +8005,7 @@ declare const IP_RESTRICTIONS_SELECTORS: {
8002
8005
  ipStartInpError: string;
8003
8006
  ipEndInpError: string;
8004
8007
  typeSelectError: string;
8008
+ addressTypeSelect: string;
8005
8009
  resetButton: string;
8006
8010
  };
8007
8011
  declare const AUDIT_LOGS_SELECTORS: {
package/index.js CHANGED
@@ -5779,6 +5779,9 @@ const WEBHOOK_SELECTORS = {
5779
5779
  eventsSelectError: "events-select-error",
5780
5780
  regenerateSecret: "regenerate-secret",
5781
5781
  deleteSecret: "delete-secret",
5782
+ deliveryRequestHeader: "delivery-request-header",
5783
+ deliveryResponseBody: "delivery-response-body",
5784
+ eventErrorText: "event-error-text",
5782
5785
  editWebhookButton: "neeto-webhooks-edit-button",
5783
5786
  deleteWebhookButton: "neeto-webhooks-delete-button",
5784
5787
  };
@@ -5881,7 +5884,8 @@ const IP_RESTRICTIONS_SELECTORS = {
5881
5884
  ipStartInpError: "ip-start-input-error",
5882
5885
  ipEndInpError: "ip-end-input-error",
5883
5886
  typeSelectError: "type-select-error",
5884
- resetButton: "ip-restriction-reset-button",
5887
+ addressTypeSelect: "address-type-select-field",
5888
+ resetButton: "ip-restriction-reset-btn",
5885
5889
  };
5886
5890
  const AUDIT_LOGS_SELECTORS = {
5887
5891
  card: "audit-log-card",
@@ -121340,7 +121344,7 @@ class AuditLogsPage {
121340
121344
  this.currentDate = dayjs().tz("Asia/Kolkata").format("MMM D, YYYY");
121341
121345
  this.messageBuilders = {
121342
121346
  [ACTIONS.inviteUsers]: (data) => `${this.admin} added ${data.emails.join(", ").toLowerCase()} to Neeto${this.product}.`,
121343
- [ACTIONS.updatedUser]: (data) => `${this.admin} changed ${data.emails[1].toLowerCase()}'s email from ${data.emails[0].toLowerCase()} to ${data.emails[1]} on Neeto${this.product}.`,
121347
+ [ACTIONS.updatedUser]: (data) => `${this.admin} changed ${data.emails[0].toLowerCase()}'s email from ${data.emails[0].toLowerCase()} to ${data.emails[1]} on Neeto${this.product}.`,
121344
121348
  [ACTIONS.removedUser]: (data) => `${this.admin} removed ${data.emails[0].toLowerCase()} from Neeto${this.product}.`,
121345
121349
  [ACTIONS.createdRole]: (data) => `${this.admin} created ${data.roleName} role on Neeto${this.product}.`,
121346
121350
  [ACTIONS.addedPermission]: (data) => `${this.admin} added ${data.permissions.join(", ").toLowerCase()} permission to ${data.roleName} role on Neeto${this.product}.`,
@@ -121590,22 +121594,19 @@ class IPRestrictionsPage {
121590
121594
  .fill(ipRange[0]);
121591
121595
  await this.page
121592
121596
  .getByTestId(IP_RESTRICTIONS_SELECTORS.ipEndTextField)
121593
- // Using nth methods here as it determines which input to interact with
121594
121597
  // eslint-disable-next-line playwright/no-nth-methods
121595
121598
  .nth(index)
121596
121599
  .fill(ipRange[1]);
121597
121600
  if (!isPresent(type))
121598
121601
  return;
121599
121602
  await this.page
121600
- .getByTestId(COMMON_SELECTORS.customSelectContainer("type"))
121601
- // Using nth methods here as it determines which dropdown to interact with
121603
+ .getByTestId(IP_RESTRICTIONS_SELECTORS.addressTypeSelect)
121602
121604
  // eslint-disable-next-line playwright/no-nth-methods
121603
121605
  .nth(index)
121604
121606
  .fill(type);
121605
121607
  await this.page.keyboard.press("Enter");
121606
121608
  await expect(this.page
121607
121609
  .getByTestId(COMMON_SELECTORS.customSelectValueContainer("type"))
121608
- // Using nth methods here as it determines which dropdown to interact with
121609
121610
  // eslint-disable-next-line playwright/no-nth-methods
121610
121611
  .nth(index)).toContainText(type);
121611
121612
  };
@@ -121618,7 +121619,7 @@ class IPRestrictionsPage {
121618
121619
  disableIPRestriction = async () => {
121619
121620
  if (!this.page.url().includes(ROUTES.adminPanel.ipRestriction))
121620
121621
  return;
121621
- const enableCheckbox = this.page.getByTestId(IP_RESTRICTIONS_SELECTORS.enableIPRestrictionChk);
121622
+ const enableCheckbox = this.page.getByTestId(COMMON_SELECTORS.switchLabel);
121622
121623
  const [isChecked, isSaveDisabled, isDeleteHidden] = await Promise.all([
121623
121624
  enableCheckbox.isChecked(),
121624
121625
  this.saveButton.isDisabled(),