@bigbinary/neeto-playwright-commons 3.1.3 → 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 +7 -6
- package/index.cjs.js.map +1 -1
- package/index.d.ts +4 -0
- package/index.js +7 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
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",
|
|
@@ -121611,22 +121615,19 @@ class IPRestrictionsPage {
|
|
|
121611
121615
|
.fill(ipRange[0]);
|
|
121612
121616
|
await this.page
|
|
121613
121617
|
.getByTestId(IP_RESTRICTIONS_SELECTORS.ipEndTextField)
|
|
121614
|
-
// Using nth methods here as it determines which input to interact with
|
|
121615
121618
|
// eslint-disable-next-line playwright/no-nth-methods
|
|
121616
121619
|
.nth(index)
|
|
121617
121620
|
.fill(ipRange[1]);
|
|
121618
121621
|
if (!neetoCist.isPresent(type))
|
|
121619
121622
|
return;
|
|
121620
121623
|
await this.page
|
|
121621
|
-
.getByTestId(
|
|
121622
|
-
// Using nth methods here as it determines which dropdown to interact with
|
|
121624
|
+
.getByTestId(IP_RESTRICTIONS_SELECTORS.addressTypeSelect)
|
|
121623
121625
|
// eslint-disable-next-line playwright/no-nth-methods
|
|
121624
121626
|
.nth(index)
|
|
121625
121627
|
.fill(type);
|
|
121626
121628
|
await this.page.keyboard.press("Enter");
|
|
121627
121629
|
await test.expect(this.page
|
|
121628
121630
|
.getByTestId(COMMON_SELECTORS.customSelectValueContainer("type"))
|
|
121629
|
-
// Using nth methods here as it determines which dropdown to interact with
|
|
121630
121631
|
// eslint-disable-next-line playwright/no-nth-methods
|
|
121631
121632
|
.nth(index)).toContainText(type);
|
|
121632
121633
|
};
|
|
@@ -121639,7 +121640,7 @@ class IPRestrictionsPage {
|
|
|
121639
121640
|
disableIPRestriction = async () => {
|
|
121640
121641
|
if (!this.page.url().includes(ROUTES.adminPanel.ipRestriction))
|
|
121641
121642
|
return;
|
|
121642
|
-
const enableCheckbox = this.page.getByTestId(
|
|
121643
|
+
const enableCheckbox = this.page.getByTestId(COMMON_SELECTORS.switchLabel);
|
|
121643
121644
|
const [isChecked, isSaveDisabled, isDeleteHidden] = await Promise.all([
|
|
121644
121645
|
enableCheckbox.isChecked(),
|
|
121645
121646
|
this.saveButton.isDisabled(),
|