From 2130a46c21a6c8949422c04d534d2a385b6e1b99 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Sun, 3 Jun 2018 17:08:36 +0530 Subject: [PATCH] [tests] Edit cell --- cypress/integration/datatable_spec.js | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/cypress/integration/datatable_spec.js b/cypress/integration/datatable_spec.js index 3b364a1..39bda5f 100644 --- a/cypress/integration/datatable_spec.js +++ b/cypress/integration/datatable_spec.js @@ -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 })