All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.cjs.cypress-utils.utils.validation.js.map Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
{"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"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy