PromucFlow_constructor/app/client/cypress/integration/CommonWidgets/Input_spec.js

28 lines
916 B
JavaScript
Raw Normal View History

const widgetsPage = require("../../locators/Widgets.json");
const loginPage = require("../../locators/LoginPage.json");
const loginData = require("../../fixtures/user.json");
const commonlocators = require("../../locators/commonlocators.json");
2020-03-20 14:21:24 +00:00
context("Cypress test", function() {
it("Input Widget Functionality", function() {
cy.get(widgetsPage.inputWidget)
.first()
.trigger("mouseover");
cy.get(widgetsPage.inputWidget)
.children(commonlocators.editicon)
.first()
.click();
//Checking the edit props for container and also the properties of container
cy.get(".CodeMirror textarea")
.first()
.focus()
.type("{meta}a")
.clear({ force: true })
.type("Test Input Label");
cy.get(".CodeMirror textarea")
.first()
.should("have.value", "Test Input Label");
cy.get(commonlocators.editPropCrossButton).click();
});
});