package.cjs.cypress-utils.utils.navigation.js.map Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
{"version":3,"file":"navigation.js","names":["_routes","require","_common","_navigation","_common2","_navigation2","verifyTabMenu","_ref","tabSelector","_ref$alias","alias","_ref$requestCount","requestCount","cy","interceptApi","get","click","waitForMultipleRequest","concat","verifyAttribute","selector","attr","value","clickOnHelpSubTab","tabText","openProfileOrHelpCenter","helpIconSelectors","helpButton","subTabLink","whatsNewButton","count","should","invoke","verifyHelpDocumentationLink","_ref2","articleTitle","_ref2$requestCount","clickByRemoveTargetAttr","documentationButton","commonSelectors","articlePageTitle","timeout","go","verifyKeyboardShortcutsPane","keyboardShortcutButton","helpIconTexts","keyboardShortcuts","keyboardShortcutPaneHeading","keyboardShortcutPaneCrossIcon","verifyWhatsNewTab","whatsNewHeading","whatsNew","openWhatsNewPane","whatsNewWidgetInfo","whatsNewWidgetCloseButton","last","waitForChatWidget","timeOut","arguments","length","undefined","defaultWait","ifNotExist","chatWidgetSelectors","widgetIframe","wait","navigationUtils","chatButton","liveChat","verifyChatWithUsTab","_ref3","_ref3$requestCount","interceptNonVersionedApi","url","requestApis","allChatPath","times","withinIframe","chatWidgetHomeCard","force","widgetSubmitButton","chatBubbleMessage","chatCloseButton","verifyMyProfileTab","_ref4","_ref4$requestCount","profileSelectors","tab","logoutLink","myProfileButton","profileTexts","myProfile","globalState","then","subdomainName","window","win","stub","as","callsFake","newUrl","location","href","myProfilePath","heading","profileSettings","verifyOrganizationTab","organizationSettingsButton","myOrganization","settingsPath","commonTexts","settings","_ref5","_ref5$count","_ref5$timeout","exports"],"sources":["../../../../src/cypress-utils/utils/navigation.js"],"sourcesContent":["/* eslint-disable xss/no-location-href-assign */\nimport { requestApis } from \"../constants/routes\";\nimport {\n commonSelectors,\n profileSelectors,\n} from \"../constants/selectors/common\";\nimport {\n chatWidgetSelectors,\n helpIconSelectors,\n} from \"../constants/selectors/navigation\";\nimport { commonTexts } from \"../constants/texts/common\";\nimport { helpIconTexts, profileTexts } from \"../constants/texts/navigation\";\n\nconst verifyTabMenu = ({\n tabSelector,\n alias = \"fetchData\",\n requestCount = 1,\n}) => {\n requestCount && cy.interceptApi(alias, requestCount);\n cy.get(tabSelector).click();\n requestCount && cy.waitForMultipleRequest(`@${alias}`, requestCount);\n cy.verifyAttribute({ selector: tabSelector, attr: \"class\", value: \"active\" });\n};\n\nconst clickOnHelpSubTab = (tabSelector, tabText) => {\n openProfileOrHelpCenter({\n tabSelector: helpIconSelectors.helpButton,\n subTabLink: helpIconSelectors.whatsNewButton,\n count: 5,\n });\n cy.get(tabSelector).should(\"have.text\", tabText).invoke(\"click\");\n};\n\nconst verifyHelpDocumentationLink = ({\n articleTitle,\n alias,\n requestCount = 3,\n}) => {\n openProfileOrHelpCenter({\n tabSelector: helpIconSelectors.helpButton,\n subTabLink: helpIconSelectors.whatsNewButton,\n count: 5,\n });\n cy.clickByRemoveTargetAttr(helpIconSelectors.documentationButton);\n\n cy.get(commonSelectors.articlePageTitle, { timeout: 10000 }).should(\n \"have.text\",\n articleTitle\n );\n cy.interceptApi(alias, requestCount);\n cy.go(\"back\");\n cy.waitForMultipleRequest(`@${alias}`, requestCount);\n};\n\nconst verifyKeyboardShortcutsPane = () => {\n clickOnHelpSubTab(\n helpIconSelectors.keyboardShortcutButton,\n helpIconTexts.keyboardShortcuts\n );\n\n cy.get(helpIconSelectors.keyboardShortcutPaneHeading).should(\n \"have.text\",\n helpIconTexts.keyboardShortcuts\n );\n cy.get(helpIconSelectors.keyboardShortcutPaneCrossIcon).click();\n};\n\nconst verifyWhatsNewTab = whatsNewHeading => {\n openProfileOrHelpCenter({\n tabSelector: helpIconSelectors.helpButton,\n subTabLink: helpIconSelectors.whatsNewButton,\n count: 5,\n });\n\n cy.get(helpIconSelectors.whatsNewButton).should(\n \"contain.text\",\n helpIconTexts.whatsNew\n );\n openWhatsNewPane();\n cy.get(helpIconSelectors.whatsNewWidgetInfo).should(\n \"have.text\",\n whatsNewHeading\n );\n cy.get(helpIconSelectors.whatsNewWidgetCloseButton).last().click();\n cy.get(helpIconSelectors.whatsNewWidgetInfo).should(\"not.exist\");\n};\n\nconst waitForChatWidget = (timeOut = 10, defaultWait = 500) => {\n if (timeOut === 0) return;\n cy.ifNotExist(chatWidgetSelectors.widgetIframe, () => {\n // eslint-disable-next-line cypress/no-unnecessary-waiting\n cy.wait(defaultWait);\n navigationUtils.clickOnHelpSubTab(\n helpIconSelectors.chatButton,\n helpIconTexts.liveChat\n );\n\n cy.ifNotExist(chatWidgetSelectors.widgetIframe, () => {\n waitForChatWidget(timeOut - 1);\n });\n });\n};\n\nconst verifyChatWithUsTab = ({ alias, requestCount = 3 }) => {\n requestCount &&\n cy.interceptNonVersionedApi({\n url: requestApis.allChatPath,\n alias,\n times: requestCount,\n });\n clickOnHelpSubTab(helpIconSelectors.chatButton, helpIconTexts.liveChat);\n requestCount && cy.waitForMultipleRequest(`@${alias}`, requestCount);\n\n waitForChatWidget();\n\n cy.withinIframe(chatWidgetSelectors.widgetIframe, () => {\n requestCount &&\n cy.interceptNonVersionedApi({\n url: requestApis.allChatPath,\n alias,\n times: requestCount,\n });\n\n cy.get(chatWidgetSelectors.chatWidgetHomeCard, { timeout: 10000 }).click({\n force: true,\n });\n requestCount && cy.wait(`@${alias}`, requestCount);\n requestCount &&\n cy.interceptNonVersionedApi({\n url: requestApis.allChatPath,\n alias,\n times: requestCount,\n });\n cy.get(chatWidgetSelectors.widgetSubmitButton).click();\n requestCount && cy.waitForMultipleRequest(`@${alias}`, requestCount);\n cy.get(chatWidgetSelectors.chatBubbleMessage).should(\"be.visible\");\n });\n cy.get(chatWidgetSelectors.chatCloseButton).click();\n cy.get(chatWidgetSelectors.widgetIframe).should(\"not.exist\");\n};\n\nconst verifyMyProfileTab = ({ alias, requestCount = 2 }) => {\n openProfileOrHelpCenter({\n tabSelector: profileSelectors.tab,\n subTabLink: profileSelectors.logoutLink,\n count: 5,\n });\n\n cy.get(profileSelectors.myProfileButton).should(\n \"have.text\",\n profileTexts.myProfile\n );\n\n cy.globalState(\"subdomainName\").then(subdomainName => {\n cy.window().then(win => {\n cy.stub(win, \"open\")\n .as(alias)\n .callsFake(newUrl => (win.location.href = newUrl));\n });\n cy.get(profileSelectors.myProfileButton).invoke(\"click\");\n cy.get(`@${alias}`).should(\"be.called\");\n cy.url().should(\"include\", requestApis.myProfilePath(subdomainName));\n });\n\n cy.get(commonSelectors.heading).should(\n \"have.text\",\n profileTexts.profileSettings\n );\n\n cy.globalState(\"subdomainName\").then(subdomainName =>\n cy.url().should(\"include\", requestApis.myProfilePath(subdomainName))\n );\n\n cy.interceptApi(alias, requestCount);\n cy.go(\"back\");\n cy.waitForMultipleRequest(`@${alias}`, requestCount);\n};\n\nconst verifyOrganizationTab = () => {\n openProfileOrHelpCenter({\n tabSelector: profileSelectors.tab,\n subTabLink: profileSelectors.logoutLink,\n count: 5,\n });\n\n cy.get(profileSelectors.organizationSettingsButton).should(\n \"have.text\",\n profileTexts.myOrganization\n );\n\n cy.globalState(\"subdomainName\").then(subdomainName => {\n cy.window().then(win => {\n cy.stub(win, \"open\")\n .as(\"navigateToSettings\")\n .callsFake(newUrl => (win.location.href = newUrl));\n });\n cy.get(profileSelectors.organizationSettingsButton).invoke(\"click\");\n cy.get(\"@navigateToSettings\").should(\"be.called\");\n cy.url().should(\"include\", requestApis.settingsPath(subdomainName));\n });\n\n cy.get(commonSelectors.heading).should(\"have.text\", commonTexts.settings);\n cy.globalState(\"subdomainName\").then(subdomainName =>\n cy.url().should(\"include\", requestApis.settingsPath(subdomainName))\n );\n};\n\nconst openProfileOrHelpCenter = ({\n tabSelector,\n subTabLink,\n count = 1,\n timeout = 2000,\n}) => {\n if (count === 0) return;\n\n cy.get(tabSelector).click();\n cy.ifNotExist(subTabLink, () => {\n cy.wait(timeout); // eslint-disable-line cypress/no-unnecessary-waiting\n openProfileOrHelpCenter({\n tabSelector,\n subTabLink,\n count: count - 1,\n timeout,\n });\n });\n};\n\nconst openWhatsNewPane = (count = 7, timeout = 2000) => {\n if (count === 0) return;\n cy.get(helpIconSelectors.whatsNewButton).invoke(\"click\");\n cy.ifNotExist(helpIconSelectors.whatsNewWidgetInfo, () => {\n cy.wait(timeout); // eslint-disable-line cypress/no-unnecessary-waiting\n openWhatsNewPane(count - 1);\n });\n};\n\nexport const navigationUtils = {\n verifyTabMenu,\n clickOnHelpSubTab,\n verifyHelpDocumentationLink,\n verifyKeyboardShortcutsPane,\n verifyWhatsNewTab,\n verifyChatWithUsTab,\n verifyMyProfileTab,\n verifyOrganizationTab,\n openProfileOrHelpCenter,\n openWhatsNewPane,\n};\n"],"mappings":";;;;;;AACA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAIA,IAAAE,WAAA,GAAAF,OAAA;AAIA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAXA;;AAaA,IAAMK,aAAa,GAAG,SAAhBA,aAAaA,CAAAC,IAAA,EAIb;EAAA,IAHJC,WAAW,GAAAD,IAAA,CAAXC,WAAW;IAAAC,UAAA,GAAAF,IAAA,CACXG,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,WAAW,GAAAA,UAAA;IAAAE,iBAAA,GAAAJ,IAAA,CACnBK,YAAY;IAAZA,YAAY,GAAAD,iBAAA,cAAG,CAAC,GAAAA,iBAAA;EAEhBC,YAAY,IAAIC,EAAE,CAACC,YAAY,CAACJ,KAAK,EAAEE,YAAY,CAAC;EACpDC,EAAE,CAACE,GAAG,CAACP,WAAW,CAAC,CAACQ,KAAK,EAAE;EAC3BJ,YAAY,IAAIC,EAAE,CAACI,sBAAsB,KAAAC,MAAA,CAAKR,KAAK,GAAIE,YAAY,CAAC;EACpEC,EAAE,CAACM,eAAe,CAAC;IAAEC,QAAQ,EAAEZ,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