[tests] Edit cell

This commit is contained in:
Faris Ansari 2018-06-03 17:08:36 +05:30
parent 96a9235a12
commit 2130a46c21

View File

@ -51,23 +51,12 @@ describe('DataTable', function () {
cy.get('@target').should('not.have.class', 'dt-cell--editing');
});
// it('edit cell', function () {
// cy.getCell(4, 1).dblclick();
// cy.wait(100);
// cy.focused()
// .type('{selectall}')
// .wait(100)
// .type('{del}')
// .wait(100)
// .type('Test')
// .wait(100)
// .type('{enter}');
// cy.getCell(4, 1).contains('Test');
// });
it('edit cell', function () {
cy.getCell(4, 1).dblclick();
cy.getCell(4, 1).find('input').click();
cy.focused().type('{selectall}{del}Test{enter}');
cy.getCell(4, 1).contains('Test');
});
it('if editing is false: editing should not activate', function () {
cy.getCell(3, 0).dblclick({ force: true })