@bigbinary/neeto-commons-frontend 2.0.131 → 2.0.133
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-utils.cjs.js +195 -142
- package/cypress-utils.cjs.js.map +1 -1
- package/cypress-utils.d.ts +2 -0
- package/cypress-utils.js +195 -142
- package/cypress-utils.js.map +1 -1
- package/package.json +7 -7
package/cypress-utils.cjs.js
CHANGED
|
@@ -398,7 +398,7 @@ var initCustomCommands = function initCustomCommands() {
|
|
|
398
398
|
return win.location.href = newUrl;
|
|
399
399
|
});
|
|
400
400
|
});
|
|
401
|
-
cy.get(selector).
|
|
401
|
+
cy.get(selector).click();
|
|
402
402
|
cy.get("@".concat(alias)).should("be.called");
|
|
403
403
|
cy.url().should("include", url);
|
|
404
404
|
});
|
|
@@ -709,6 +709,195 @@ var profileTexts = {
|
|
|
709
709
|
myOrganization: "My organization"
|
|
710
710
|
};
|
|
711
711
|
|
|
712
|
+
var verifyTabMenu = function verifyTabMenu(_ref) {
|
|
713
|
+
var tabSelector = _ref.tabSelector,
|
|
714
|
+
_ref$alias = _ref.alias,
|
|
715
|
+
alias = _ref$alias === void 0 ? "fetchData" : _ref$alias,
|
|
716
|
+
_ref$requestCount = _ref.requestCount,
|
|
717
|
+
requestCount = _ref$requestCount === void 0 ? 1 : _ref$requestCount;
|
|
718
|
+
requestCount && cy.interceptApi(alias, requestCount);
|
|
719
|
+
cy.get(tabSelector).click();
|
|
720
|
+
requestCount && cy.waitForMultipleRequest("@".concat(alias), requestCount);
|
|
721
|
+
cy.verifyAttribute({
|
|
722
|
+
selector: tabSelector,
|
|
723
|
+
attr: "class",
|
|
724
|
+
value: "active"
|
|
725
|
+
});
|
|
726
|
+
};
|
|
727
|
+
var clickOnHelpSubTab = function clickOnHelpSubTab(tabSelector, tabText) {
|
|
728
|
+
openProfileOrHelpCenter({
|
|
729
|
+
tabSelector: helpIconSelectors.helpButton,
|
|
730
|
+
subTabLink: helpIconSelectors.whatsNewButton,
|
|
731
|
+
count: 5
|
|
732
|
+
});
|
|
733
|
+
cy.get(tabSelector).should("have.text", tabText).invoke("click");
|
|
734
|
+
};
|
|
735
|
+
var verifyHelpDocumentationLink = function verifyHelpDocumentationLink(_ref2) {
|
|
736
|
+
var articleTitle = _ref2.articleTitle,
|
|
737
|
+
alias = _ref2.alias,
|
|
738
|
+
_ref2$requestCount = _ref2.requestCount,
|
|
739
|
+
requestCount = _ref2$requestCount === void 0 ? 3 : _ref2$requestCount;
|
|
740
|
+
openProfileOrHelpCenter({
|
|
741
|
+
tabSelector: helpIconSelectors.helpButton,
|
|
742
|
+
subTabLink: helpIconSelectors.whatsNewButton,
|
|
743
|
+
count: 5
|
|
744
|
+
});
|
|
745
|
+
cy.clickByRemoveTargetAttr(helpIconSelectors.documentationButton);
|
|
746
|
+
cy.get(commonSelectors.articlePageTitle, {
|
|
747
|
+
timeout: 10000
|
|
748
|
+
}).should("have.text", articleTitle);
|
|
749
|
+
cy.interceptApi(alias, requestCount);
|
|
750
|
+
cy.go("back");
|
|
751
|
+
cy.waitForMultipleRequest("@".concat(alias), requestCount);
|
|
752
|
+
};
|
|
753
|
+
var verifyKeyboardShortcutsPane = function verifyKeyboardShortcutsPane() {
|
|
754
|
+
clickOnHelpSubTab(helpIconSelectors.keyboardShortcutButton, helpIconTexts.keyboardShortcuts);
|
|
755
|
+
cy.get(helpIconSelectors.keyboardShortcutPaneHeading).should("have.text", helpIconTexts.keyboardShortcuts);
|
|
756
|
+
cy.get(helpIconSelectors.keyboardShortcutPaneCrossIcon).click();
|
|
757
|
+
};
|
|
758
|
+
var verifyWhatsNewTab = function verifyWhatsNewTab(whatsNewHeading) {
|
|
759
|
+
openProfileOrHelpCenter({
|
|
760
|
+
tabSelector: helpIconSelectors.helpButton,
|
|
761
|
+
subTabLink: helpIconSelectors.whatsNewButton,
|
|
762
|
+
count: 5
|
|
763
|
+
});
|
|
764
|
+
cy.get(helpIconSelectors.whatsNewButton).should("contain.text", helpIconTexts.whatsNew);
|
|
765
|
+
openWhatsNewPane();
|
|
766
|
+
cy.get(helpIconSelectors.whatsNewWidgetInfo).should("have.text", whatsNewHeading);
|
|
767
|
+
cy.get(helpIconSelectors.whatsNewWidgetCloseButton).last().click();
|
|
768
|
+
cy.get(helpIconSelectors.whatsNewWidgetInfo).should("not.exist");
|
|
769
|
+
};
|
|
770
|
+
var waitForChatWidget = function waitForChatWidget() {
|
|
771
|
+
var timeOut = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10;
|
|
772
|
+
var defaultWait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
773
|
+
if (timeOut === 0) return;
|
|
774
|
+
cy.ifNotExist(chatWidgetSelectors.widgetIframe, function () {
|
|
775
|
+
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
776
|
+
cy.wait(defaultWait);
|
|
777
|
+
navigationUtils.clickOnHelpSubTab(helpIconSelectors.chatButton, helpIconTexts.liveChat);
|
|
778
|
+
cy.ifNotExist(chatWidgetSelectors.widgetIframe, function () {
|
|
779
|
+
waitForChatWidget(timeOut - 1);
|
|
780
|
+
});
|
|
781
|
+
});
|
|
782
|
+
};
|
|
783
|
+
var verifyChatWithUsTab = function verifyChatWithUsTab(_ref3) {
|
|
784
|
+
var alias = _ref3.alias,
|
|
785
|
+
_ref3$requestCount = _ref3.requestCount,
|
|
786
|
+
requestCount = _ref3$requestCount === void 0 ? 3 : _ref3$requestCount;
|
|
787
|
+
requestCount && cy.interceptNonVersionedApi({
|
|
788
|
+
url: requestApis.allChatPath,
|
|
789
|
+
alias: alias,
|
|
790
|
+
times: requestCount
|
|
791
|
+
});
|
|
792
|
+
clickOnHelpSubTab(helpIconSelectors.chatButton, helpIconTexts.liveChat);
|
|
793
|
+
requestCount && cy.waitForMultipleRequest("@".concat(alias), requestCount);
|
|
794
|
+
waitForChatWidget();
|
|
795
|
+
cy.withinIframe(chatWidgetSelectors.widgetIframe, function () {
|
|
796
|
+
requestCount && cy.interceptNonVersionedApi({
|
|
797
|
+
url: requestApis.allChatPath,
|
|
798
|
+
alias: alias,
|
|
799
|
+
times: requestCount
|
|
800
|
+
});
|
|
801
|
+
cy.get(chatWidgetSelectors.chatWidgetHomeCard, {
|
|
802
|
+
timeout: 10000
|
|
803
|
+
}).eq(0).should("have.text", helpIconTexts.newConversation).click();
|
|
804
|
+
requestCount && cy.wait("@".concat(alias), requestCount);
|
|
805
|
+
requestCount && cy.interceptNonVersionedApi({
|
|
806
|
+
url: requestApis.allChatPath,
|
|
807
|
+
alias: alias,
|
|
808
|
+
times: requestCount
|
|
809
|
+
});
|
|
810
|
+
cy.get(chatWidgetSelectors.widgetSubmitButton).click();
|
|
811
|
+
requestCount && cy.waitForMultipleRequest("@".concat(alias), requestCount);
|
|
812
|
+
cy.get(chatWidgetSelectors.chatBubbleMessage).should("have.text", helpIconTexts.chatMessage);
|
|
813
|
+
});
|
|
814
|
+
cy.get(chatWidgetSelectors.chatCloseButton).click();
|
|
815
|
+
cy.get(chatWidgetSelectors.widgetIframe).should("not.exist");
|
|
816
|
+
};
|
|
817
|
+
var verifyMyProfileTab = function verifyMyProfileTab(_ref4) {
|
|
818
|
+
var alias = _ref4.alias,
|
|
819
|
+
_ref4$requestCount = _ref4.requestCount,
|
|
820
|
+
requestCount = _ref4$requestCount === void 0 ? 2 : _ref4$requestCount;
|
|
821
|
+
openProfileOrHelpCenter({
|
|
822
|
+
tabSelector: profileSelectors.tab,
|
|
823
|
+
subTabLink: profileSelectors.logoutLink,
|
|
824
|
+
count: 5
|
|
825
|
+
});
|
|
826
|
+
cy.get(profileSelectors.myProfileButton).should("have.text", profileTexts.myProfile);
|
|
827
|
+
cy.globalState("subdomainName").then(function (subdomainName) {
|
|
828
|
+
cy.window().then(function (win) {
|
|
829
|
+
cy.stub(win, "open").as(alias).callsFake(function (newUrl) {
|
|
830
|
+
return win.location.href = newUrl;
|
|
831
|
+
});
|
|
832
|
+
});
|
|
833
|
+
cy.get(profileSelectors.myProfileButton).invoke("click");
|
|
834
|
+
cy.get("@".concat(alias)).should("be.called");
|
|
835
|
+
cy.url().should("include", requestApis.myProfilePath(subdomainName));
|
|
836
|
+
});
|
|
837
|
+
cy.get(commonSelectors.heading).should("have.text", profileTexts.profileSettings);
|
|
838
|
+
cy.globalState("subdomainName").then(function (subdomainName) {
|
|
839
|
+
return cy.url().should("include", requestApis.myProfilePath(subdomainName));
|
|
840
|
+
});
|
|
841
|
+
cy.interceptApi(alias, requestCount);
|
|
842
|
+
cy.go("back");
|
|
843
|
+
cy.waitForMultipleRequest("@".concat(alias), requestCount);
|
|
844
|
+
};
|
|
845
|
+
var verifyOrganizationTab = function verifyOrganizationTab() {
|
|
846
|
+
openProfileOrHelpCenter({
|
|
847
|
+
tabSelector: profileSelectors.tab,
|
|
848
|
+
subTabLink: profileSelectors.logoutLink,
|
|
849
|
+
count: 5
|
|
850
|
+
});
|
|
851
|
+
cy.get(profileSelectors.organizationSettingsButton).should("have.text", profileTexts.myOrganization);
|
|
852
|
+
cy.globalState("subdomainName").then(function (subdomainName) {
|
|
853
|
+
return cy.openInSameTabOnClick({
|
|
854
|
+
url: requestApis.settingsPath(subdomainName),
|
|
855
|
+
selector: profileSelectors.organizationSettingsButton,
|
|
856
|
+
alias: "navigateToSettings"
|
|
857
|
+
});
|
|
858
|
+
});
|
|
859
|
+
cy.get(commonSelectors.heading).should("have.text", commonTexts.settings);
|
|
860
|
+
cy.globalState("subdomainName").then(function (subdomainName) {
|
|
861
|
+
return cy.url().should("include", requestApis.settingsPath(subdomainName));
|
|
862
|
+
});
|
|
863
|
+
};
|
|
864
|
+
var openProfileOrHelpCenter = function openProfileOrHelpCenter(_ref5) {
|
|
865
|
+
var tabSelector = _ref5.tabSelector,
|
|
866
|
+
subTabLink = _ref5.subTabLink,
|
|
867
|
+
_ref5$count = _ref5.count,
|
|
868
|
+
count = _ref5$count === void 0 ? 1 : _ref5$count,
|
|
869
|
+
_ref5$timeout = _ref5.timeout,
|
|
870
|
+
timeout = _ref5$timeout === void 0 ? 2000 : _ref5$timeout;
|
|
871
|
+
if (count === 0) return;
|
|
872
|
+
cy.get(tabSelector).click();
|
|
873
|
+
cy.ifNotExist(subTabLink, function () {
|
|
874
|
+
cy.wait(timeout); // eslint-disable-line cypress/no-unnecessary-waiting
|
|
875
|
+
openProfileOrHelpCenter(count - 1);
|
|
876
|
+
});
|
|
877
|
+
};
|
|
878
|
+
var openWhatsNewPane = function openWhatsNewPane() {
|
|
879
|
+
var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 7;
|
|
880
|
+
var timeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
|
|
881
|
+
if (count === 0) return;
|
|
882
|
+
cy.get(helpIconSelectors.whatsNewButton).invoke("click");
|
|
883
|
+
cy.ifNotExist(helpIconSelectors.whatsNewWidgetInfo, function () {
|
|
884
|
+
cy.wait(timeout); // eslint-disable-line cypress/no-unnecessary-waiting
|
|
885
|
+
openWhatsNewPane(count - 1);
|
|
886
|
+
});
|
|
887
|
+
};
|
|
888
|
+
var navigationUtils = {
|
|
889
|
+
verifyTabMenu: verifyTabMenu,
|
|
890
|
+
clickOnHelpSubTab: clickOnHelpSubTab,
|
|
891
|
+
verifyHelpDocumentationLink: verifyHelpDocumentationLink,
|
|
892
|
+
verifyKeyboardShortcutsPane: verifyKeyboardShortcutsPane,
|
|
893
|
+
verifyWhatsNewTab: verifyWhatsNewTab,
|
|
894
|
+
verifyChatWithUsTab: verifyChatWithUsTab,
|
|
895
|
+
verifyMyProfileTab: verifyMyProfileTab,
|
|
896
|
+
verifyOrganizationTab: verifyOrganizationTab,
|
|
897
|
+
openProfileOrHelpCenter: openProfileOrHelpCenter,
|
|
898
|
+
openWhatsNewPane: openWhatsNewPane
|
|
899
|
+
};
|
|
900
|
+
|
|
712
901
|
var verifySSOLoginPage = function verifySSOLoginPage() {
|
|
713
902
|
cy.log("verify Login Page");
|
|
714
903
|
cy.get(loginSelectors.githubAuthenticationButton).should("be.visible");
|
|
@@ -727,6 +916,11 @@ var verifySSOLoginPage = function verifySSOLoginPage() {
|
|
|
727
916
|
};
|
|
728
917
|
var logout = function logout(homeUrl) {
|
|
729
918
|
cy.get(profileSelectors.loader).should("not.exist");
|
|
919
|
+
navigationUtils.openProfileOrHelpCenter({
|
|
920
|
+
tabSelector: profileSelectors.tab,
|
|
921
|
+
subTabLink: profileSelectors.logoutLink,
|
|
922
|
+
count: 5
|
|
923
|
+
});
|
|
730
924
|
cy.get(profileSelectors.tab).click();
|
|
731
925
|
cy.get(profileSelectors.logoutLink).should("have.text", commonTexts.logout).invoke("click");
|
|
732
926
|
cy.url({
|
|
@@ -1207,147 +1401,6 @@ var verifyCrossSiteScript = function verifyCrossSiteScript(inputSelector, submit
|
|
|
1207
1401
|
cy.get(commonSelectors.windowAlert).should("not.exist");
|
|
1208
1402
|
};
|
|
1209
1403
|
|
|
1210
|
-
var verifyTabMenu = function verifyTabMenu(_ref) {
|
|
1211
|
-
var tabSelector = _ref.tabSelector,
|
|
1212
|
-
toolTiptext = _ref.toolTiptext,
|
|
1213
|
-
_ref$alias = _ref.alias,
|
|
1214
|
-
alias = _ref$alias === void 0 ? "fetchData" : _ref$alias,
|
|
1215
|
-
_ref$requestCount = _ref.requestCount,
|
|
1216
|
-
requestCount = _ref$requestCount === void 0 ? 1 : _ref$requestCount;
|
|
1217
|
-
cy.verifyTooltip(tabSelector, toolTiptext);
|
|
1218
|
-
requestCount && cy.interceptApi(alias, requestCount);
|
|
1219
|
-
cy.get(tabSelector).click();
|
|
1220
|
-
requestCount && cy.waitForMultipleRequest("@".concat(alias), requestCount);
|
|
1221
|
-
cy.verifyAttribute({
|
|
1222
|
-
selector: tabSelector,
|
|
1223
|
-
attr: "class",
|
|
1224
|
-
value: "active"
|
|
1225
|
-
});
|
|
1226
|
-
};
|
|
1227
|
-
var clickOnHelpSubTab = function clickOnHelpSubTab(tabSelector, tabText) {
|
|
1228
|
-
cy.get(helpIconSelectors.helpButton).click();
|
|
1229
|
-
cy.get(tabSelector).should("have.text", tabText).invoke("click");
|
|
1230
|
-
};
|
|
1231
|
-
var verifyHelpDocumentationLink = function verifyHelpDocumentationLink(_ref2) {
|
|
1232
|
-
var articleTitle = _ref2.articleTitle,
|
|
1233
|
-
alias = _ref2.alias,
|
|
1234
|
-
_ref2$requestCount = _ref2.requestCount,
|
|
1235
|
-
requestCount = _ref2$requestCount === void 0 ? 3 : _ref2$requestCount;
|
|
1236
|
-
cy.get(helpIconSelectors.helpButton).invoke("click");
|
|
1237
|
-
cy.clickByRemoveTargetAttr(helpIconSelectors.documentationButton);
|
|
1238
|
-
cy.get(commonSelectors.articlePageTitle, {
|
|
1239
|
-
timeout: 10000
|
|
1240
|
-
}).should("have.text", articleTitle);
|
|
1241
|
-
cy.interceptApi(alias, requestCount);
|
|
1242
|
-
cy.go("back");
|
|
1243
|
-
cy.waitForMultipleRequest("@".concat(alias), requestCount);
|
|
1244
|
-
};
|
|
1245
|
-
var verifyKeyboardShortcutsPane = function verifyKeyboardShortcutsPane() {
|
|
1246
|
-
clickOnHelpSubTab(helpIconSelectors.keyboardShortcutButton, helpIconTexts.keyboardShortcuts);
|
|
1247
|
-
cy.get(helpIconSelectors.keyboardShortcutPaneHeading).should("have.text", helpIconTexts.keyboardShortcuts);
|
|
1248
|
-
cy.get(helpIconSelectors.keyboardShortcutPaneCrossIcon).click();
|
|
1249
|
-
};
|
|
1250
|
-
var verifyWhatsNewTab = function verifyWhatsNewTab(whatsNewHeading) {
|
|
1251
|
-
cy.get(helpIconSelectors.helpButton).click();
|
|
1252
|
-
cy.get(helpIconSelectors.whatsNewButton).should("contain.text", helpIconTexts.whatsNew).invoke("click");
|
|
1253
|
-
cy.get(helpIconSelectors.whatsNewWidgetInfo).should("have.text", whatsNewHeading);
|
|
1254
|
-
cy.get(helpIconSelectors.whatsNewWidgetCloseButton).last().click();
|
|
1255
|
-
cy.get(helpIconSelectors.whatsNewWidgetInfo).should("not.exist");
|
|
1256
|
-
};
|
|
1257
|
-
var waitForChatWidget = function waitForChatWidget() {
|
|
1258
|
-
var timeOut = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10;
|
|
1259
|
-
var defaultWait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
1260
|
-
if (timeOut === 0) return;
|
|
1261
|
-
cy.ifNotExist(chatWidgetSelectors.widgetIframe, function () {
|
|
1262
|
-
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
1263
|
-
cy.wait(defaultWait);
|
|
1264
|
-
navigationUtils.clickOnHelpSubTab(helpIconSelectors.chatButton, helpIconTexts.liveChat);
|
|
1265
|
-
cy.ifNotExist(chatWidgetSelectors.widgetIframe, function () {
|
|
1266
|
-
waitForChatWidget(timeOut - 1);
|
|
1267
|
-
});
|
|
1268
|
-
});
|
|
1269
|
-
};
|
|
1270
|
-
var verifyChatWithUsTab = function verifyChatWithUsTab(_ref3) {
|
|
1271
|
-
var alias = _ref3.alias,
|
|
1272
|
-
_ref3$requestCount = _ref3.requestCount,
|
|
1273
|
-
requestCount = _ref3$requestCount === void 0 ? 3 : _ref3$requestCount;
|
|
1274
|
-
requestCount && cy.interceptNonVersionedApi({
|
|
1275
|
-
url: requestApis.allChatPath,
|
|
1276
|
-
alias: alias,
|
|
1277
|
-
times: requestCount
|
|
1278
|
-
});
|
|
1279
|
-
clickOnHelpSubTab(helpIconSelectors.chatButton, helpIconTexts.liveChat);
|
|
1280
|
-
requestCount && cy.waitForMultipleRequest("@".concat(alias), requestCount);
|
|
1281
|
-
waitForChatWidget();
|
|
1282
|
-
cy.withinIframe(chatWidgetSelectors.widgetIframe, function () {
|
|
1283
|
-
requestCount && cy.interceptNonVersionedApi({
|
|
1284
|
-
url: requestApis.allChatPath,
|
|
1285
|
-
alias: alias,
|
|
1286
|
-
times: requestCount
|
|
1287
|
-
});
|
|
1288
|
-
cy.get(chatWidgetSelectors.chatWidgetHomeCard, {
|
|
1289
|
-
timeout: 10000
|
|
1290
|
-
}).eq(0).should("have.text", helpIconTexts.newConversation).click();
|
|
1291
|
-
requestCount && cy.wait("@".concat(alias), requestCount);
|
|
1292
|
-
requestCount && cy.interceptNonVersionedApi({
|
|
1293
|
-
url: requestApis.allChatPath,
|
|
1294
|
-
alias: alias,
|
|
1295
|
-
times: requestCount
|
|
1296
|
-
});
|
|
1297
|
-
cy.get(chatWidgetSelectors.widgetSubmitButton).click();
|
|
1298
|
-
requestCount && cy.waitForMultipleRequest("@".concat(alias), requestCount);
|
|
1299
|
-
cy.get(chatWidgetSelectors.chatBubbleMessage).should("have.text", helpIconTexts.chatMessage);
|
|
1300
|
-
});
|
|
1301
|
-
cy.get(chatWidgetSelectors.chatCloseButton).click();
|
|
1302
|
-
cy.get(chatWidgetSelectors.widgetIframe).should("not.exist");
|
|
1303
|
-
};
|
|
1304
|
-
var verifyMyProfileTab = function verifyMyProfileTab(_ref4) {
|
|
1305
|
-
var alias = _ref4.alias,
|
|
1306
|
-
_ref4$requestCount = _ref4.requestCount,
|
|
1307
|
-
requestCount = _ref4$requestCount === void 0 ? 2 : _ref4$requestCount;
|
|
1308
|
-
cy.get(profileSelectors.tab).click();
|
|
1309
|
-
cy.get(profileSelectors.myProfileButton).should("have.text", profileTexts.myProfile);
|
|
1310
|
-
cy.globalState("subdomainName").then(function (subdomainName) {
|
|
1311
|
-
return cy.openInSameTabOnClick({
|
|
1312
|
-
url: requestApis.myProfilePath(subdomainName),
|
|
1313
|
-
selector: profileSelectors.myProfileButton,
|
|
1314
|
-
alias: alias
|
|
1315
|
-
});
|
|
1316
|
-
});
|
|
1317
|
-
cy.get(commonSelectors.heading).should("have.text", profileTexts.profileSettings);
|
|
1318
|
-
cy.globalState("subdomainName").then(function (subdomainName) {
|
|
1319
|
-
return cy.url().should("include", requestApis.myProfilePath(subdomainName));
|
|
1320
|
-
});
|
|
1321
|
-
cy.interceptApi(alias, requestCount);
|
|
1322
|
-
cy.go("back");
|
|
1323
|
-
cy.waitForMultipleRequest("@".concat(alias), requestCount);
|
|
1324
|
-
};
|
|
1325
|
-
var verifyOrganizationTab = function verifyOrganizationTab() {
|
|
1326
|
-
cy.get(profileSelectors.tab).click();
|
|
1327
|
-
cy.get(profileSelectors.organizationSettingsButton).should("have.text", profileTexts.myOrganization);
|
|
1328
|
-
cy.globalState("subdomainName").then(function (subdomainName) {
|
|
1329
|
-
return cy.openInSameTabOnClick({
|
|
1330
|
-
url: requestApis.settingsPath(subdomainName),
|
|
1331
|
-
selector: profileSelectors.organizationSettingsButton,
|
|
1332
|
-
alias: "navigateToSettings"
|
|
1333
|
-
});
|
|
1334
|
-
});
|
|
1335
|
-
cy.get(commonSelectors.heading).should("have.text", commonTexts.settings);
|
|
1336
|
-
cy.globalState("subdomainName").then(function (subdomainName) {
|
|
1337
|
-
return cy.url().should("include", requestApis.settingsPath(subdomainName));
|
|
1338
|
-
});
|
|
1339
|
-
};
|
|
1340
|
-
var navigationUtils = {
|
|
1341
|
-
verifyTabMenu: verifyTabMenu,
|
|
1342
|
-
clickOnHelpSubTab: clickOnHelpSubTab,
|
|
1343
|
-
verifyHelpDocumentationLink: verifyHelpDocumentationLink,
|
|
1344
|
-
verifyKeyboardShortcutsPane: verifyKeyboardShortcutsPane,
|
|
1345
|
-
verifyWhatsNewTab: verifyWhatsNewTab,
|
|
1346
|
-
verifyChatWithUsTab: verifyChatWithUsTab,
|
|
1347
|
-
verifyMyProfileTab: verifyMyProfileTab,
|
|
1348
|
-
verifyOrganizationTab: verifyOrganizationTab
|
|
1349
|
-
};
|
|
1350
|
-
|
|
1351
1404
|
exports.authUtils = authUtils;
|
|
1352
1405
|
exports.chatWidgetSelectors = chatWidgetSelectors;
|
|
1353
1406
|
exports.commonSelectors = commonSelectors;
|