@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 +12 -7
- package/index.cjs.js.map +1 -1
- package/index.d.ts +4 -0
- package/index.js +12 -7
- package/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
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",
|
|
@@ -8881,6 +8885,7 @@ class OrganizationPage {
|
|
|
8881
8885
|
if (IS_DEV_ENV)
|
|
8882
8886
|
return;
|
|
8883
8887
|
const subdomainError = this.page.getByTestId(SIGNUP_SELECTORS.subdomainError);
|
|
8888
|
+
const subdomainAvailabilityMsg = this.page.getByTestId(SIGNUP_SELECTORS.subdomainAvailabilityMsg);
|
|
8884
8889
|
const organizationSubmitButton = this.page.getByTestId(SIGNUP_SELECTORS.organizationSubmitButton);
|
|
8885
8890
|
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
8886
8891
|
await this.page
|
|
@@ -8889,9 +8894,12 @@ class OrganizationPage {
|
|
|
8889
8894
|
await this.page
|
|
8890
8895
|
.getByTestId(SIGNUP_SELECTORS.subdomainNameTextField)
|
|
8891
8896
|
.fill(credentials.subdomainName);
|
|
8897
|
+
await expect(subdomainAvailabilityMsg.or(subdomainError)).toBeVisible({
|
|
8898
|
+
timeout: 15_000,
|
|
8899
|
+
});
|
|
8892
8900
|
const subdomainErrorCount = await subdomainError.count();
|
|
8893
8901
|
subdomainErrorCount !== 0 && (await this.updateSubdomainIfExists(appName));
|
|
8894
|
-
await expect(
|
|
8902
|
+
await expect(subdomainAvailabilityMsg).toBeVisible({ timeout: 45_000 });
|
|
8895
8903
|
await organizationSubmitButton.click();
|
|
8896
8904
|
await Promise.all([
|
|
8897
8905
|
expect(organizationSubmitButton).toBeHidden({ timeout: 45 * 1000 }),
|
|
@@ -121586,22 +121594,19 @@ class IPRestrictionsPage {
|
|
|
121586
121594
|
.fill(ipRange[0]);
|
|
121587
121595
|
await this.page
|
|
121588
121596
|
.getByTestId(IP_RESTRICTIONS_SELECTORS.ipEndTextField)
|
|
121589
|
-
// Using nth methods here as it determines which input to interact with
|
|
121590
121597
|
// eslint-disable-next-line playwright/no-nth-methods
|
|
121591
121598
|
.nth(index)
|
|
121592
121599
|
.fill(ipRange[1]);
|
|
121593
121600
|
if (!isPresent(type))
|
|
121594
121601
|
return;
|
|
121595
121602
|
await this.page
|
|
121596
|
-
.getByTestId(
|
|
121597
|
-
// Using nth methods here as it determines which dropdown to interact with
|
|
121603
|
+
.getByTestId(IP_RESTRICTIONS_SELECTORS.addressTypeSelect)
|
|
121598
121604
|
// eslint-disable-next-line playwright/no-nth-methods
|
|
121599
121605
|
.nth(index)
|
|
121600
121606
|
.fill(type);
|
|
121601
121607
|
await this.page.keyboard.press("Enter");
|
|
121602
121608
|
await expect(this.page
|
|
121603
121609
|
.getByTestId(COMMON_SELECTORS.customSelectValueContainer("type"))
|
|
121604
|
-
// Using nth methods here as it determines which dropdown to interact with
|
|
121605
121610
|
// eslint-disable-next-line playwright/no-nth-methods
|
|
121606
121611
|
.nth(index)).toContainText(type);
|
|
121607
121612
|
};
|
|
@@ -121614,7 +121619,7 @@ class IPRestrictionsPage {
|
|
|
121614
121619
|
disableIPRestriction = async () => {
|
|
121615
121620
|
if (!this.page.url().includes(ROUTES.adminPanel.ipRestriction))
|
|
121616
121621
|
return;
|
|
121617
|
-
const enableCheckbox = this.page.getByTestId(
|
|
121622
|
+
const enableCheckbox = this.page.getByTestId(COMMON_SELECTORS.switchLabel);
|
|
121618
121623
|
const [isChecked, isSaveDisabled, isDeleteHidden] = await Promise.all([
|
|
121619
121624
|
enableCheckbox.isChecked(),
|
|
121620
121625
|
this.saveButton.isDisabled(),
|