package.cypress-utils.utils.validation.js 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.
import { commonSelectors } from "../constants/selectors/common";
import { commonTexts } from "../constants/texts/common";
export var verifyCrossSiteScript = function verifyCrossSiteScript(inputSelector, submitSelector) {
cy.interceptApi("searchRequest");
cy.clearAndType(inputSelector, commonTexts.crossSiteScript);
submitSelector && cy.get(submitSelector).click();
cy.wait("@searchRequest");
cy.get(commonSelectors.windowAlert).should("not.exist");
};
//# sourceMappingURL=validation.js.map