15 lines
709 B
JavaScript
15 lines
709 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('Table Widget Functionality',function(){
|
|
|
|
cy.get(widgetsPage.tableWidget).first().trigger('mouseover',{force:true})
|
|
cy.get(widgetsPage.tableWidget).children(commonlocators.editicon).first().click()
|
|
cy.get('.CodeMirror textarea').focus().type("{meta}a").clear({ force: true }).type("{{MockUsersApi.data}}",{parseSpecialCharSequences: false})
|
|
cy.get(commonlocators.editPropCrossButton).click()
|
|
})
|
|
}) |