package.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":["requestApis","commonSelectors","commonTexts","isStagingEnv","initCustomCommands","Cypress","Commands","add","selector","text","cy","get","clear","type","delay","click","concat","message","toastMessage","should","toastCloseButton","closeToastr","arguments","length","undefined","document","its","find","toastIcon","args","props","_typeof","alias","title","_props$requestCount","requestCount","verifyToastIcon","hasMoreThanOneRequest","alertTitle","interceptApi","alertModalSubmitButton","wait","verifyToastMessage","waitForMultipleRequest","times","intercept","url","allPath","resourceType","as","wrap","_toConsumableArray","Array","each","options","then","requestHeaders","request","_objectSpread","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","key","task","body","$body","_ref2","subject","target","_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","unsavedChangesAlertTitle","alertMessage","unsavedChangesAlertMessage","realHover","tooltip","mailosaurGetMessage","env","req","on","res","setCookies","isArray","filter","Boolean","map","headerContent"],"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,SAASA,WAAW;AACpB,SAASC,eAAe;AACxB,SAASC,WAAW;AACpB,SAASC,YAAY;AAErB,OAAO,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAA,EAAS;EACtCC,OAAO,CAACC,QAAQ,CAACC,GAAG,CAAC,cAAc,EAAE,UAACC,QAAQ,EAAEC,IAAI,EAAK;IACvDC,EAAE,CAACC,GAAG,CAACH,QAAQ,CAAC,CAACI,KAAK,CAAC,CAAC,CAACC,IAAI,CAACJ,IAAI,CAAC;EACrC,CAAC,CAAC;EAEFJ,OAAO,CAACC,QAAQ,CAACC,GAAG,CAAC,kBAAkB,EAAE,UAACC,QAAQ,EAAEC,IAAI,EAAK;IAC3DC,EAAE,CAACC,GAAG,CAACH,QAAQ,CAAC,CAACI,KAAK,CAAC,CAAC,CAACC,IAAI,CAACJ,IAAI,EAAE;MAAEK,KAAK,EAAE;IAAE,CAAC,CAAC;EACnD,CAAC,CAAC;EAEFT,OAAO,CAACC,QAAQ,CAACC,GAAG,CAAC,yBAAyB,EAAE,UAACC,QAAQ,EAAEC,IAAI,EAAK;IAClEC,EAAE,CAACC,GAAG,CAACH,QAAQ,CAAC,CAACO,KAAK,CAAC,CAAC,CAACH,KAAK,CAAC,CAAC,CAACC,IAAI,CAACJ,IAAI,EAAE;MAA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