@bigbinary/neeto-playwright-commons 3.1.2 → 3.1.4

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 CHANGED
@@ -5800,6 +5800,9 @@ const WEBHOOK_SELECTORS = {
5800
5800
  eventsSelectError: "events-select-error",
5801
5801
  regenerateSecret: "regenerate-secret",
5802
5802
  deleteSecret: "delete-secret",
5803
+ deliveryRequestHeader: "delivery-request-header",
5804
+ deliveryResponseBody: "delivery-response-body",
5805
+ eventErrorText: "event-error-text",
5803
5806
  editWebhookButton: "neeto-webhooks-edit-button",
5804
5807
  deleteWebhookButton: "neeto-webhooks-delete-button",
5805
5808
  };
@@ -5902,7 +5905,8 @@ const IP_RESTRICTIONS_SELECTORS = {
5902
5905
  ipStartInpError: "ip-start-input-error",
5903
5906
  ipEndInpError: "ip-end-input-error",
5904
5907
  typeSelectError: "type-select-error",
5905
- resetButton: "ip-restriction-reset-button",
5908
+ addressTypeSelect: "address-type-select-field",
5909
+ resetButton: "ip-restriction-reset-btn",
5906
5910
  };
5907
5911
  const AUDIT_LOGS_SELECTORS = {
5908
5912
  card: "audit-log-card",
@@ -8902,6 +8906,7 @@ class OrganizationPage {
8902
8906
  if (IS_DEV_ENV)
8903
8907
  return;
8904
8908
  const subdomainError = this.page.getByTestId(SIGNUP_SELECTORS.subdomainError);
8909
+ const subdomainAvailabilityMsg = this.page.getByTestId(SIGNUP_SELECTORS.subdomainAvailabilityMsg);
8905
8910
  const organizationSubmitButton = this.page.getByTestId(SIGNUP_SELECTORS.organizationSubmitButton);
8906
8911
  await this.neetoPlaywrightUtilities.waitForPageLoad();
8907
8912
  await this.page
@@ -8910,9 +8915,12 @@ class OrganizationPage {
8910
8915
  await this.page
8911
8916
  .getByTestId(SIGNUP_SELECTORS.subdomainNameTextField)
8912
8917
  .fill(credentials.subdomainName);
8918
+ await test.expect(subdomainAvailabilityMsg.or(subdomainError)).toBeVisible({
8919
+ timeout: 15_000,
8920
+ });
8913
8921
  const subdomainErrorCount = await subdomainError.count();
8914
8922
  subdomainErrorCount !== 0 && (await this.updateSubdomainIfExists(appName));
8915
- await test.expect(this.page.getByTestId(SIGNUP_SELECTORS.subdomainAvailabilityMsg)).toBeVisible({ timeout: 45_000 });
8923
+ await test.expect(subdomainAvailabilityMsg).toBeVisible({ timeout: 45_000 });
8916
8924
  await organizationSubmitButton.click();
8917
8925
  await Promise.all([
8918
8926
  test.expect(organizationSubmitButton).toBeHidden({ timeout: 45 * 1000 }),
@@ -121607,22 +121615,19 @@ class IPRestrictionsPage {
121607
121615
  .fill(ipRange[0]);
121608
121616
  await this.page
121609
121617
  .getByTestId(IP_RESTRICTIONS_SELECTORS.ipEndTextField)
121610
- // Using nth methods here as it determines which input to interact with
121611
121618
  // eslint-disable-next-line playwright/no-nth-methods
121612
121619
  .nth(index)
121613
121620
  .fill(ipRange[1]);
121614
121621
  if (!neetoCist.isPresent(type))
121615
121622
  return;
121616
121623
  await this.page
121617
- .getByTestId(COMMON_SELECTORS.customSelectContainer("type"))
121618
- // Using nth methods here as it determines which dropdown to interact with
121624
+ .getByTestId(IP_RESTRICTIONS_SELECTORS.addressTypeSelect)
121619
121625
  // eslint-disable-next-line playwright/no-nth-methods
121620
121626
  .nth(index)
121621
121627
  .fill(type);
121622
121628
  await this.page.keyboard.press("Enter");
121623
121629
  await test.expect(this.page
121624
121630
  .getByTestId(COMMON_SELECTORS.customSelectValueContainer("type"))
121625
- // Using nth methods here as it determines which dropdown to interact with
121626
121631
  // eslint-disable-next-line playwright/no-nth-methods
121627
121632
  .nth(index)).toContainText(type);
121628
121633
  };
@@ -121635,7 +121640,7 @@ class IPRestrictionsPage {
121635
121640
  disableIPRestriction = async () => {
121636
121641
  if (!this.page.url().includes(ROUTES.adminPanel.ipRestriction))
121637
121642
  return;
121638
- const enableCheckbox = this.page.getByTestId(IP_RESTRICTIONS_SELECTORS.enableIPRestrictionChk);
121643
+ const enableCheckbox = this.page.getByTestId(COMMON_SELECTORS.switchLabel);
121639
121644
  const [isChecked, isSaveDisabled, isDeleteHidden] = await Promise.all([
121640
121645
  enableCheckbox.isChecked(),
121641
121646
  this.saveButton.isDisabled(),