package.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":["commonSelectors","commonTexts","verifyCrossSiteScript","inputSelector","submitSelector","cy","interceptApi","clearAndType","crossSiteScript","get","click","wait","windowAlert","should"],"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,SAASA,eAAe;AACxB,SAASC,WAAW;AAEpB,OAAO,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAIC,aAAa,EAAEC,cAAc,EAAK;EACtEC,EAAE,CAACC,YAAY,CAAC,eAAe,CAAC;EAChCD,EAAE,CAACE,YAAY,CAACJ,aAAa,EAAEF,WAAW,CAACO,eAAe,CAAC;EAC3DJ,cAAc,IAAIC,EAAE,CAACI,GAAG,CAACL,cAAc,CAAC,CAACM,KAAK,CAAC,CAAC;EAChDL,EAAE,CAACM,IAAI,CAAC,gBAAgB,CAAC;EACzBN,EAAE,CAACI,GAAG,CAACT,eAAe,CAACY,WAAW,CAAC,CAACC,MAAM,CAAC,WAAW,CAAC;AACzD,CAAC","ignoreList":[]}