package.cjs.cypress-utils.utils.validation.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":"validation.js","names":["_common","require","_common2","verifyCrossSiteScript","inputSelector","submitSelector","cy","interceptApi","clearAndType","commonTexts","crossSiteScript","get","click","wait","commonSelectors","windowAlert","should","exports"],"sources":["../../../../src/cypress-utils/utils/validation.js"],"sourcesContent":["import { commonSelectors } from \"../constants/selectors/common\";\nimport { commonTexts } from \"../constants/texts/common\";\n\nexport const verifyCrossSiteScript = (inputSelector, submitSelector) => {\n cy.interceptApi(\"searchRequest\");\n cy.clearAndType(inputSelector, commonTexts.crossSiteScript);\n submitSelector && cy.get(submitSelector).click();\n cy.wait(\"@searchRequest\");\n cy.get(commonSelectors.windowAlert).should(\"not.exist\");\n};\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEO,IAAME,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAIC,aAAa,EAAEC,cAAc,EAAK;EACtEC,EAAE,CAACC,YAAY,CAAC,eAAe,CAAC;EAChCD,EAAE,CAACE,YAAY,CAACJ,aAAa,EAAEK,oBAAW,CAACC,eAAe,CAAC;EAC3DL,cAAc,IAAIC,EAAE,CAACK,GAAG,CAACN,cAAc,CAAC,CAACO,KAAK,EAAE;EAChDN,EAAE,CAACO,IAAI,CAAC,gBAAgB,CAAC;EACzBP,EAAE,CAACK,GAAG,CAACG,uBAAe,CAACC,WAAW,CAAC,CAACC,MAAM,CAAC,WAAW,CAAC;AACzD,CAAC;AAACC,OAAA,CAAAd,qBAAA,GAAAA,qBAAA"}