2020-03-27 09:02:11 +00:00
|
|
|
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
|
|
|
|
2020-03-27 09:02:11 +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();
|
|
|
|
|
});
|
|
|
|
|
});
|