package.cjs.cypress-utils.commands.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":"commands.js","names":["_routes","require","_common","_common2","_common3","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","initCustomCommands","Cypress","Commands","add","selector","text","cy","get","clear","type","delay","click","concat","message","commonSelectors","toastMessage","should","toastCloseButton","closeToastr","undefined","document","its","find","toastIcon","args","props","_typeof2","alias","title","_props$requestCount","requestCount","verifyToastIcon","hasMoreThanOneRequest","alertTitle","interceptApi","alertModalSubmitButton","wait","verifyToastMessage","waitForMultipleRequest","times","intercept","url","requestApis","allPath","resourceType","as","wrap","_toConsumableArray2","Array","each","options","then","requestHeaders","request","headers","log","reload","containerSelector","optionText","selectOption","invoke","dropdownSelector","dropdownIcon","dropdownContainer","contains","iframeSelector","callback","timeout","and","eq","within","_ref","window","win","stub","callsFake","newUrl","location","href","task","body","$body","_ref2","subject","_ref2$dragIndex","dragIndex","_ref2$dropIndex","dropIndex","name","consoleProps","$target","coordsDrop","getBoundingClientRect","coordsDrag","trigger","button","clientX","x","clientY","y","force","textInputSelector","value","switchButton","_ref3","_ref3$url","_ref3$times","_ref4","_ref4$skipSearchReque","skipSearchRequest","currentValue","clearAndTypeFast","fetchRequestCount","clickByRemoveTargetAttr","aliasName","saveChangesButton","_ref5","attr","cancelButton","commonTexts","unsavedChangesAlertTitle","alertMessage","unsavedChangesAlertMessage","realHover","tooltip","mailosaurGetMessage","env","isStagingEnv","req","on","res","setCookies","isArray","Boolean","map","headerContent","exports"],"sources":["../../../src/cypress-utils/commands.js"],"sourcesContent":["import { requestApis } from \"./constants/routes\";\nimport { commonSelectors } from \"./constants/selectors/common\";\nimport { commonTexts } from \"./constants/texts/common\";\nimport { isStagingEnv } from \"./utils/common\";\n\nexport const initCustomCommands = () => {\n Cypress.Commands.add(\"clearAndType\", (selector, text) => {\n cy.get(selector).clear().type(text);\n });\n\n Cypress.Commands.add(\"clearAndTypeFast\", (selector, text) => {\n cy.get(selector).clear().type(text, { delay: 0 });\n });\n\n Cypress.Commands.add(\"clearByClickAndTypeFast\", (selector, text) => {\n cy.get(selector).click().clear().type(text, { delay: 0 });\n });\n\n Cypress.Commands.add(\"typeFast\", (selector, text) => {\n cy.get(selector).type(text, { delay: 0 });\n });\n\n Cypress.Commands.add(\"typeAndEnter\", (selector, text) => {\n cy.get(selector).clear().type(`${text}{enter}`);\n });\n\n Cypress.Commands.add(\"verifyToastMessage\", message => {\n cy.get(commonSelectors.toastMessage)\n .should(\"be.visible\")\n .should(\"have.text\", message);\n\n // close toast message\n cy.get(commonSelectors.toastCloseButton).click();\n cy.get(commonSelectors.toastMessage).should(\"not.exist\");\n });\n\n Cypress.Commands.add(\"verifyToastIcon\", (closeToastr = true) => {\n cy.document()\n .its(\"body\")\n .find(commonSelectors.toastIcon)\n .should(\"have.text\", \"👍\");\n\n closeToastr &&\n cy.document().its(\"body\").find(commonSelectors.toastCloseButton).click();\n\n cy.document()\n .its(\"body\")\n .find(commonSelectors.toastIcon)\n .should(\"not.exist\");\n });\n\n Cypress.Commands.add(\"continueOnAlert\", args => {\n const props = typeof args === \"object\" ? args : { alias: args };\n const {\n alias,\n title,\n requestCount = 1,\n verifyToastIcon,\n toastMessage,\n } = props;\n const hasMoreThanOneRequest = requestCount > 1;\n\n title && cy.get(commonSelectors.alertTitle).should(\"have.text\", title);\n cy.interceptApi(alias, requestCount);\n cy.get(commonSelectors.alertModalSubmitButton).click();\n cy.wait(`@${alias}`);\n verifyToastIcon && cy.verifyToastIcon();\n toastMessage && cy.verifyToastMessage(toastMessage);\n hasMoreThanOneRequest &&\n cy.waitForMultipleRequest(`@${alias}`, requestCount - 1);\n });\n\n Cypress.Commands.add(\n \"interceptApi\",\n (alias, times = 1) =>\n times > 0 &&\n cy\n .intercept({ url: requestApis.allPath, resourceType: \"xhr\", times })\n .as(alias)\n );\n\n Cypress.Commands.add(\"waitForMultipleRequest\", (alias, times = 1) =>\n cy.wrap([...new Array(times)]).each(() => cy.wait(alias))\n );\n\n Cypress.Commands.add(\"apiRequest\", options =>\n cy.get(\"@requestHeaders\").then(requestHeaders =>\n requestHeaders\n ? cy.request({\n ...options,\n headers: { ...requestHeaders, \"accept-encoding\": \"gzip\" },\n })\n : cy.log(\"No request headers found\")\n )\n );\n\n Cypress.Commands.add(\"reloadAndWait\", (requestCount = 0) => {\n if (!(requestCount > 0)) return;\n cy.interceptApi(\"reloadAllRequests\", requestCount);\n cy.reload();\n cy.waitForMultipleRequest(\"@reloadAllRequests\", requestCount);\n });\n\n Cypress.Commands.add(\"selectOption\", (containerSelector, optionText) => {\n cy.get(containerSelector).click().type(optionText);\n cy.get(commonSelectors.selectOption(optionText)).invoke(\"click\");\n });\n\n Cypress.Commands.add(\n \"clickDropdownOption\",\n (optionText, dropdownSelector = commonSelectors.dropdownIcon) => {\n cy.get(dropdownSelector).click();\n cy.get(commonSelectors.dropdownContainer)\n .contains(optionText)\n .invoke(\"click\");\n }\n );\n\n Cypress.Commands.add(\"getText\", selector => cy.get(selector).invoke(\"text\"));\n\n Cypress.Commands.add(\"getValue\", selector => cy.get(selector).invoke(\"val\"));\n\n // Deprecated. Use withinIframe.\n Cypress.Commands.add(\"getIframe\", iframeSelector =>\n cy.get(iframeSelector).its(\"0.contentDocument.body\").should(\"not.be.empty\")\n );\n\n Cypress.Commands.add(\"withinIframe\", (selector, callback) => {\n cy.get(selector, { timeout: 10000 })\n .its(\"0.contentDocument.body\")\n .should(\"be.visible\")\n .and(\"not.be.empty\");\n\n cy.get(selector, { timeout: 10000 })\n .its(\"0.contentDocument.body\")\n .eq(0)\n .within(callback);\n });\n\n Cypress.Commands.add(\"openInSameTabOnClick\", ({ url, alias, selector }) => {\n cy.window().then(win => {\n cy.stub(win, \"open\")\n .as(alias)\n // eslint-disable-next-line xss/no-location-href-assign\n .callsFake(newUrl => (win.location.href = newUrl));\n });\n cy.get(selector).click();\n cy.get(`@${alias}`).should(\"be.called\");\n cy.url().should(\"include\", url);\n });\n\n Cypress.Commands.add(\"globalState\", key => cy.task(\"getGlobalState\", key));\n\n Cypress.Commands.add(\"ifExist\", (selector, callback) => {\n cy.get(commonSelectors.body).then($body => {\n if ($body.find(selector).length) callback();\n });\n });\n\n Cypress.Commands.add(\"ifNotExist\", (selector, callback) => {\n cy.get(commonSelectors.body).then($body => {\n if (!$body.find(selector).length) callback();\n });\n });\n\n Cypress.Commands.add(\n \"dragAndDrop\",\n ({ subject, target, dragIndex = 0, dropIndex = 0 }) => {\n cy.get(subject).should(\"be.visible\", { timeout: 20000 });\n Cypress.log({\n name: \"DRAGNDROP\",\n message: `Dragging element ${subject} to ${target}`,\n consoleProps: () => ({ subject, target }),\n });\n\n cy.get(target)\n .eq(dropIndex)\n .then($target => {\n const coordsDrop = $target[0].getBoundingClientRect();\n cy.get(subject)\n .eq(dragIndex)\n .then(subject => {\n const coordsDrag = subject[0].getBoundingClientRect();\n cy.wrap(subject)\n .trigger(\"mousedown\", {\n button: 0, // BUTTON_INDEX\n clientX: coordsDrag.x,\n clientY: coordsDrag.y,\n force: true,\n })\n .trigger(\"mousemove\", {\n button: 0, // BUTTON_INDEX\n clientX: coordsDrag.x + 10, // SLOPPY_CLICK_THRESHOLD\n clientY: coordsDrag.y,\n force: true,\n });\n\n cy.get(\"body\")\n .trigger(\"mousemove\", {\n button: 0, // BUTTON_INDEX\n clientX: coordsDrop.x,\n clientY: coordsDrop.y,\n force: true,\n })\n .trigger(\"mouseup\");\n });\n });\n }\n );\n\n Cypress.Commands.add(\"verifyPlaceholder\", (textInputSelector, value) => {\n cy.get(textInputSelector)\n .should(\"have.attr\", \"placeholder\")\n .and(\"eq\", value);\n });\n\n Cypress.Commands.add(\"enableOrDisableSwitch\", (switchButton, value) => {\n cy.get(switchButton).invoke(\"click\");\n cy.get(switchButton).should(\"have.prop\", \"value\").and(\"eq\", value);\n });\n\n Cypress.Commands.add(\n \"interceptNonVersionedApi\",\n ({ url = \"*\", alias, times = 1 }) => {\n cy.intercept({ url, times }).as(alias);\n }\n );\n\n Cypress.Commands.add(\n \"typeOnSearchField\",\n ({ selector, value, skipSearchRequest = true, delay }) => {\n cy.get(selector)\n .invoke(\"val\")\n .then(currentValue => {\n if (currentValue !== value) {\n !skipSearchRequest && cy.interceptApi(\"searchRequest\");\n cy.clearAndTypeFast(selector, value);\n !skipSearchRequest && cy.wait(\"@searchRequest\");\n } else delay && cy.wait(delay);\n });\n }\n );\n\n Cypress.Commands.add(\"clickByRemoveTargetAttr\", selector => {\n cy.get(selector).invoke(\"removeAttr\", \"target\").click();\n });\n\n Cypress.Commands.add(\n \"navigateToPreviewPage\",\n (selector, fetchRequestCount = 1) => {\n cy.interceptApi(\"fetchRequests\", fetchRequestCount);\n cy.clickByRemoveTargetAttr(selector);\n fetchRequestCount === 1\n ? cy.wait(\"@fetchRequests\")\n : cy.waitForMultipleRequest(\"@fetchRequests\", fetchRequestCount);\n }\n );\n\n Cypress.Commands.add(\"saveChanges\", (aliasName, requestCount = 1) => {\n cy.interceptApi(aliasName, requestCount);\n cy.get(commonSelectors.saveChangesButton).click();\n cy.wait(`@${aliasName}`);\n cy.verifyToastIcon();\n requestCount > 1 &&\n cy.waitForMultipleRequest(`@${aliasName}`, requestCount - 1);\n });\n\n Cypress.Commands.add(\"verifyAttribute\", ({ selector, attr, value }) => {\n cy.get(selector).should(\"have.attr\", attr).and(\"include\", value);\n });\n\n Cypress.Commands.add(\"verifyUnsavedAlertModal\", cancelButton => {\n cy.get(cancelButton).click();\n cy.get(commonSelectors.alertTitle).should(\n \"have.text\",\n commonTexts.unsavedChangesAlertTitle\n );\n\n cy.get(commonSelectors.alertMessage).should(\n \"have.text\",\n commonTexts.unsavedChangesAlertMessage\n );\n });\n\n Cypress.Commands.add(\"verifyTooltip\", (selector, text) => {\n cy.get(selector).realHover();\n cy.document()\n .its(\"body\")\n .find(commonSelectors.tooltip)\n .should(\"have.text\", text);\n cy.document().find(\"body\").click(\"topRight\", { force: true });\n cy.document().its(\"body\").find(commonSelectors.tooltip).should(\"not.exist\");\n });\n\n Cypress.Commands.add(\"getEmailContent\", (props, options) =>\n cy.mailosaurGetMessage(Cypress.env(\"MAILOSAUR_SERVER_ID\"), props, options)\n );\n\n Cypress.Commands.add(\"rewriteHeaders\", () => {\n if (!isStagingEnv) return;\n\n cy.intercept(\"*\", req =>\n req.on(\"response\", res => {\n const setCookies = res.headers[\"set-cookie\"];\n res.headers[\"set-cookie\"] = (\n Array.isArray(setCookies) ? setCookies : [setCookies]\n )\n .filter(Boolean)\n .map(headerContent => headerContent.concat(\"secure; samesite=none\"));\n })\n );\n });\n};\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAA8C,SAAAI,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,WAAAF,SAAA,CAAA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