@bigbinary/neeto-playwright-commons 6.1.4 → 6.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 +2 -0
- package/index.js +9 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -5550,6 +5550,7 @@ declare const DESCRIPTION_EDITOR_TEXTS: {
|
|
|
5550
5550
|
linkTag: string;
|
|
5551
5551
|
link: string;
|
|
5552
5552
|
cannedResponseHeader: string;
|
|
5553
|
+
seededCannedResponseName: string;
|
|
5553
5554
|
paragraphOption: string;
|
|
5554
5555
|
search: string;
|
|
5555
5556
|
emoji: string;
|
|
@@ -5659,6 +5660,7 @@ declare const IP_RESTRICTIONS_SELECTORS: {
|
|
|
5659
5660
|
ipEndInpError: string;
|
|
5660
5661
|
typeSelectError: string;
|
|
5661
5662
|
addressTypeSelect: string;
|
|
5663
|
+
addressTypeSelectContainer: string;
|
|
5662
5664
|
resetButton: string;
|
|
5663
5665
|
};
|
|
5664
5666
|
declare const AUDIT_LOGS_SELECTORS: {
|
package/index.js
CHANGED
|
@@ -639,8 +639,9 @@ const IP_RESTRICTIONS_SELECTORS = {
|
|
|
639
639
|
ipRangeDeleteBtn: "allowed-ip-range-delete-button",
|
|
640
640
|
ipStartInpError: "ip-start-input-error",
|
|
641
641
|
ipEndInpError: "ip-end-input-error",
|
|
642
|
-
typeSelectError: "type-select-error",
|
|
643
|
-
addressTypeSelect: "address-type-select-
|
|
642
|
+
typeSelectError: "address-type-select-error",
|
|
643
|
+
addressTypeSelect: "address-type-select-input",
|
|
644
|
+
addressTypeSelectContainer: "address-type-select-container",
|
|
644
645
|
resetButton: "ip-restriction-reset-btn",
|
|
645
646
|
};
|
|
646
647
|
const AUDIT_LOGS_SELECTORS = {
|
|
@@ -998,7 +999,7 @@ const EMBED_SELECTORS = {
|
|
|
998
999
|
colorPickerTarget: "color-picker-target",
|
|
999
1000
|
colorpickerEditableInput: "colorpicker-editable-input",
|
|
1000
1001
|
colorpickerEditableInputTextbox: "colorpicker-editable-input-textbox",
|
|
1001
|
-
showIconCheckbox: "show-icon-checkbox",
|
|
1002
|
+
showIconCheckbox: "show-icon-checkbox-input",
|
|
1002
1003
|
elementIdInput: "element-id-input-field",
|
|
1003
1004
|
previewElementPopupButton: "preview-element-popup-button",
|
|
1004
1005
|
embedSelector: (type) => `embed-selector-card-${hyphenate(type)}`,
|
|
@@ -5511,6 +5512,8 @@ const DESCRIPTION_EDITOR_TEXTS = {
|
|
|
5511
5512
|
linkTag: "a",
|
|
5512
5513
|
link: "Link",
|
|
5513
5514
|
cannedResponseHeader: "Canned responses",
|
|
5515
|
+
// Seeded record name (desk, chat), not UI copy, so it doesn't follow the locale.
|
|
5516
|
+
seededCannedResponseName: "Feedback",
|
|
5514
5517
|
paragraphOption: "paragraph",
|
|
5515
5518
|
search: "Search",
|
|
5516
5519
|
emoji: "Emoji",
|
|
@@ -6048,9 +6051,9 @@ class EditorPage {
|
|
|
6048
6051
|
await expect(this.page.getByTestId(COMMON_SELECTORS.paneHeader)).toContainText(DESCRIPTION_EDITOR_TEXTS.cannedResponseHeader);
|
|
6049
6052
|
await this.page
|
|
6050
6053
|
.getByTestId(NEETO_EDITOR_SELECTORS.cannedResponseSelectContainer)
|
|
6051
|
-
.fill(
|
|
6054
|
+
.fill(DESCRIPTION_EDITOR_TEXTS.seededCannedResponseName);
|
|
6052
6055
|
await this.page
|
|
6053
|
-
.getByTestId(COMMON_SELECTORS.selectOption(
|
|
6056
|
+
.getByTestId(COMMON_SELECTORS.selectOption(DESCRIPTION_EDITOR_TEXTS.seededCannedResponseName))
|
|
6054
6057
|
.click();
|
|
6055
6058
|
await this.page.getByTestId(NEETO_EDITOR_SELECTORS.applyButton).click();
|
|
6056
6059
|
await this.neetoPlaywrightUtilities.verifyToast({
|
|
@@ -6897,7 +6900,7 @@ class IPRestrictionsPage {
|
|
|
6897
6900
|
.fill(type);
|
|
6898
6901
|
await this.page.keyboard.press("Enter");
|
|
6899
6902
|
await expect(this.page
|
|
6900
|
-
.getByTestId(
|
|
6903
|
+
.getByTestId(IP_RESTRICTIONS_SELECTORS.addressTypeSelectContainer)
|
|
6901
6904
|
// eslint-disable-next-line playwright/no-nth-methods
|
|
6902
6905
|
.nth(index)).toContainText(type);
|
|
6903
6906
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-playwright-commons",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.5",
|
|
4
4
|
"description": "A package encapsulating common playwright code across neeto projects.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-playwright-commons.git",
|
|
6
6
|
"license": "apache-2.0",
|