@bigbinary/neeto-commons-frontend 2.0.92 → 2.0.94
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/cypress-configs/initializer.js +1 -1
- package/cypress-utils.cjs.js +23 -17
- package/cypress-utils.cjs.js.map +1 -1
- package/cypress-utils.js +23 -17
- package/cypress-utils.js.map +1 -1
- package/package.json +1 -1
package/cypress-utils.js
CHANGED
|
@@ -1219,53 +1219,59 @@ var verifyWhatsNewTab = function verifyWhatsNewTab(whatsNewHeading) {
|
|
|
1219
1219
|
cy.get(helpIconSelectors.whatsNewWidgetCloseButton).last().click();
|
|
1220
1220
|
cy.get(helpIconSelectors.whatsNewWidgetInfo).should("not.exist");
|
|
1221
1221
|
};
|
|
1222
|
-
var verifyChatWithUsTab = function verifyChatWithUsTab() {
|
|
1223
|
-
|
|
1222
|
+
var verifyChatWithUsTab = function verifyChatWithUsTab(_ref3) {
|
|
1223
|
+
var alias = _ref3.alias,
|
|
1224
|
+
_ref3$requestCount = _ref3.requestCount,
|
|
1225
|
+
requestCount = _ref3$requestCount === void 0 ? 3 : _ref3$requestCount;
|
|
1226
|
+
requestCount && cy.interceptNonVersionedApi({
|
|
1224
1227
|
url: requestApis.allChatPath,
|
|
1225
|
-
alias:
|
|
1226
|
-
times:
|
|
1228
|
+
alias: alias,
|
|
1229
|
+
times: requestCount
|
|
1227
1230
|
});
|
|
1228
1231
|
clickOnHelpSubTab(helpIconSelectors.chatButton, helpIconTexts.liveChat);
|
|
1229
|
-
cy.waitForMultipleRequest("@
|
|
1230
|
-
cy.get(helpIconSelectors.chatButton).click();
|
|
1232
|
+
requestCount && cy.waitForMultipleRequest("@".concat(alias), requestCount);
|
|
1231
1233
|
cy.withinIframe(chatWidgetSelectors.widgetIframe, function () {
|
|
1232
|
-
cy.interceptNonVersionedApi({
|
|
1234
|
+
requestCount && cy.interceptNonVersionedApi({
|
|
1233
1235
|
url: requestApis.allChatPath,
|
|
1234
|
-
alias:
|
|
1236
|
+
alias: alias,
|
|
1237
|
+
times: requestCount
|
|
1235
1238
|
});
|
|
1236
1239
|
cy.get(chatWidgetSelectors.chatWidgetHomeCard, {
|
|
1237
1240
|
timeout: 10000
|
|
1238
1241
|
}).should("have.text", helpIconTexts.newConversation).click();
|
|
1239
|
-
cy.wait("@
|
|
1240
|
-
cy.interceptNonVersionedApi({
|
|
1242
|
+
requestCount && cy.wait("@".concat(alias), requestCount);
|
|
1243
|
+
requestCount && cy.interceptNonVersionedApi({
|
|
1241
1244
|
url: requestApis.allChatPath,
|
|
1242
|
-
alias:
|
|
1243
|
-
times:
|
|
1245
|
+
alias: alias,
|
|
1246
|
+
times: requestCount
|
|
1244
1247
|
});
|
|
1245
1248
|
cy.get(chatWidgetSelectors.widgetSubmitButton).click();
|
|
1246
|
-
cy.waitForMultipleRequest("@
|
|
1249
|
+
requestCount && cy.waitForMultipleRequest("@".concat(alias), requestCount);
|
|
1247
1250
|
cy.get(chatWidgetSelectors.chatBubbleMessage).should("have.text", helpIconTexts.chatMessage);
|
|
1248
1251
|
});
|
|
1249
1252
|
cy.get(chatWidgetSelectors.chatCloseButton).click();
|
|
1250
1253
|
cy.get(chatWidgetSelectors.widgetIframe).should("not.exist");
|
|
1251
1254
|
};
|
|
1252
|
-
var verifyMyProfileTab = function verifyMyProfileTab() {
|
|
1255
|
+
var verifyMyProfileTab = function verifyMyProfileTab(_ref4) {
|
|
1256
|
+
var alias = _ref4.alias,
|
|
1257
|
+
_ref4$requestCount = _ref4.requestCount,
|
|
1258
|
+
requestCount = _ref4$requestCount === void 0 ? 2 : _ref4$requestCount;
|
|
1253
1259
|
cy.get(profileSelectors.tab).click();
|
|
1254
1260
|
cy.get(profileSelectors.myProfileButton).should("have.text", profileTexts.myProfile);
|
|
1255
1261
|
cy.globalState("subdomainName").then(function (subdomainName) {
|
|
1256
1262
|
return cy.openInSameTabOnClick({
|
|
1257
1263
|
url: requestApis.myProfilePath(subdomainName),
|
|
1258
1264
|
selector: profileSelectors.myProfileButton,
|
|
1259
|
-
alias:
|
|
1265
|
+
alias: alias
|
|
1260
1266
|
});
|
|
1261
1267
|
});
|
|
1262
1268
|
cy.get(commonSelectors.menuBarHeading).should("have.text", profileTexts.profileSettings);
|
|
1263
1269
|
cy.globalState("subdomainName").then(function (subdomainName) {
|
|
1264
1270
|
return cy.url().should("include", requestApis.myProfilePath(subdomainName));
|
|
1265
1271
|
});
|
|
1266
|
-
cy.interceptApi(
|
|
1272
|
+
cy.interceptApi(alias, requestCount);
|
|
1267
1273
|
cy.go("back");
|
|
1268
|
-
cy.waitForMultipleRequest("@
|
|
1274
|
+
cy.waitForMultipleRequest("@".concat(alias), requestCount);
|
|
1269
1275
|
};
|
|
1270
1276
|
var verifyOrganizationTab = function verifyOrganizationTab() {
|
|
1271
1277
|
cy.get(profileSelectors.tab).click();
|