PromucFlow_constructor/app/client/cypress/integration/CommonWidgets/Container_spec.js
2020-03-20 14:21:24 +00:00

17 lines
828 B
JavaScript

var widgetsPage= require('../../locators/Widgets.json')
var loginPage= require('../../locators/LoginPage.json')
const loginData=require('../../fixtures/user.json')
var commonlocators = require('../../locators/commonlocators.json')
context('Cypress test',function() {
it('Container Widget Functionality',function(){
cy.get(widgetsPage.containerWidget).first().trigger('mouseover',{force:true})
cy.get(widgetsPage.containerWidget).children(commonlocators.editIcon).first().click()
//Checking the edit props for container and also the properties of container
cy.get('.CodeMirror textarea').focus().type("{meta}a").clear({ force: true }).type('#C0C0C0')
cy.get('.CodeMirror textarea').should('have.value', '#C0C0C0')
cy.get(commonlocators.editPropCrossButton).click()
})
})