|
|
@ -161,12 +161,12 @@ function addNewRow(index, cellValue) { |
|
|
|
cy.get(".nc-add-new-row-btn").click(); |
|
|
|
cy.get(".nc-add-new-row-btn").click(); |
|
|
|
cy.wait(1000); |
|
|
|
cy.wait(1000); |
|
|
|
cy.get(".nc-expand-col-Title").find(".nc-cell > input").first().type(cellValue); |
|
|
|
cy.get(".nc-expand-col-Title").find(".nc-cell > input").first().type(cellValue); |
|
|
|
cy.getActiveDrawer() |
|
|
|
cy.getActiveDrawer('.nc-drawer-expanded-form') |
|
|
|
.find(".ant-btn-primary") |
|
|
|
.find(".ant-btn-primary") |
|
|
|
.click(); |
|
|
|
.click(); |
|
|
|
|
|
|
|
|
|
|
|
cy.toastWait("updated successfully"); |
|
|
|
cy.toastWait("updated successfully"); |
|
|
|
cy.getActiveDrawer() |
|
|
|
cy.getActiveDrawer('.nc-drawer-expanded-form') |
|
|
|
.find(".ant-btn") |
|
|
|
.find(".ant-btn") |
|
|
|
.contains("Cancel") |
|
|
|
.contains("Cancel") |
|
|
|
.click(); |
|
|
|
.click(); |
|
|
@ -184,14 +184,14 @@ function updateRow(index, cellValue) { |
|
|
|
.clear() |
|
|
|
.clear() |
|
|
|
.type(cellValue); |
|
|
|
.type(cellValue); |
|
|
|
|
|
|
|
|
|
|
|
cy.getActiveDrawer() |
|
|
|
cy.getActiveDrawer('.nc-drawer-expanded-form') |
|
|
|
.find("button") |
|
|
|
.find("button") |
|
|
|
.contains("Save row") |
|
|
|
.contains("Save row") |
|
|
|
.click({ force: true }); |
|
|
|
.click({ force: true }); |
|
|
|
|
|
|
|
|
|
|
|
// partial toast message
|
|
|
|
// partial toast message
|
|
|
|
cy.toastWait("updated successfully"); |
|
|
|
cy.toastWait("updated successfully"); |
|
|
|
cy.getActiveDrawer() |
|
|
|
cy.getActiveDrawer('.nc-drawer-expanded-form') |
|
|
|
.find("button") |
|
|
|
.find("button") |
|
|
|
.contains("Cancel") |
|
|
|
.contains("Cancel") |
|
|
|
.click({ force: true }); |
|
|
|
.click({ force: true }); |
|
|
|