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

package.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":["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":[]}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy