@bigbinary/neeto-commons-frontend 2.1.24 → 2.1.26
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/constants.cjs.js +2 -0
- package/constants.cjs.js.map +1 -1
- package/constants.d.ts +1 -0
- package/constants.js +2 -1
- package/constants.js.map +1 -1
- package/cypress-utils.cjs.js +6 -3
- package/cypress-utils.cjs.js.map +1 -1
- package/cypress-utils.js +6 -3
- package/cypress-utils.js.map +1 -1
- package/package.json +1 -1
package/cypress-utils.js
CHANGED
|
@@ -187,7 +187,9 @@ var commonSelectors = {
|
|
|
187
187
|
paneBody: ".neeto-ui-pane__body",
|
|
188
188
|
paneHeader: ".neeto-ui-pane__header",
|
|
189
189
|
profileSidebar: ".neeto-ui-profile-sidebar",
|
|
190
|
-
selectOption:
|
|
190
|
+
selectOption: function selectOption(label) {
|
|
191
|
+
return dataCy("".concat(joinHyphenCase(label), "-select-option"));
|
|
192
|
+
},
|
|
191
193
|
toastMessage: dataCy("toastr-message-container"),
|
|
192
194
|
toastCloseButton: ".neeto-ui-toastr__close-button",
|
|
193
195
|
windowAlert: "#alert-box",
|
|
@@ -356,7 +358,7 @@ var initCustomCommands = function initCustomCommands() {
|
|
|
356
358
|
});
|
|
357
359
|
Cypress.Commands.add("selectOption", function (containerSelector, optionText) {
|
|
358
360
|
cy.get(containerSelector).click().type(optionText);
|
|
359
|
-
cy.
|
|
361
|
+
cy.get(commonSelectors.selectOption(optionText.split("_").join("-").toLowerCase())).invoke("click");
|
|
360
362
|
});
|
|
361
363
|
Cypress.Commands.add("clickDropdownOption", function (optionText) {
|
|
362
364
|
var dropdownSelector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : commonSelectors.dropdownIcon;
|
|
@@ -751,7 +753,8 @@ var uniqueDepartment = function uniqueDepartment() {
|
|
|
751
753
|
max: 100
|
|
752
754
|
});
|
|
753
755
|
};
|
|
754
|
-
var phoneNumber = function phoneNumber(
|
|
756
|
+
var phoneNumber = function phoneNumber() {
|
|
757
|
+
var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "9#########";
|
|
755
758
|
return faker.phone.number(format);
|
|
756
759
|
};
|
|
757
760
|
var secureUrl = function secureUrl() {
|