|
|
|
@ -204,11 +204,9 @@ export class _mainPage {
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
addColumn = (colName, tableName) => { |
|
|
|
|
cy.get(".nc-column-add").click({ |
|
|
|
|
force: true, |
|
|
|
|
}); |
|
|
|
|
cy.get(".nc-column-add").click(); |
|
|
|
|
|
|
|
|
|
cy.getActiveMenu(".nc-dropdown-grid-add-column") |
|
|
|
|
cy.getActiveMenu(".nc-dropdown-grid-add-column:has(.nc-column-name-input)") |
|
|
|
|
.find("input.nc-column-name-input") |
|
|
|
|
.should("exist") |
|
|
|
|
.clear() |
|
|
|
@ -223,18 +221,15 @@ export class _mainPage {
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
addColumnWithType = (colName, colType, tableName) => { |
|
|
|
|
cy.get(".nc-column-add").click({ |
|
|
|
|
force: true, |
|
|
|
|
}); |
|
|
|
|
cy.get(".nc-column-add").click(); |
|
|
|
|
|
|
|
|
|
cy.getActiveMenu(".nc-dropdown-grid-add-column") |
|
|
|
|
cy.getActiveMenu(".nc-dropdown-grid-add-column:has(.nc-column-name-input)") |
|
|
|
|
.find("input.nc-column-name-input") |
|
|
|
|
.should("exist") |
|
|
|
|
.clear() |
|
|
|
|
.type(colName); |
|
|
|
|
|
|
|
|
|
// change column type and verify
|
|
|
|
|
// cy.get(".nc-column-type-input").last().click();
|
|
|
|
|
cy.getActiveMenu(".nc-dropdown-grid-add-column") |
|
|
|
|
.find(".nc-column-type-input") |
|
|
|
|
.last() |
|
|
|
@ -243,7 +238,6 @@ export class _mainPage {
|
|
|
|
|
.find(".ant-select-item-option") |
|
|
|
|
.contains(colType) |
|
|
|
|
.click(); |
|
|
|
|
// cy.get(".ant-btn-primary:visible").contains("Save").click();
|
|
|
|
|
cy.getActiveMenu(".nc-dropdown-grid-add-column") |
|
|
|
|
.find(".ant-btn-primary:visible") |
|
|
|
|
.contains("Save") |
|
|
|
|