mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 06:56:47 +00:00
Merge branch 'develop' into feat/kanban-view
This commit is contained in:
@@ -174,7 +174,7 @@ Cypress.Commands.add("gridWait", (rc) => {
|
||||
if (rc != 0) {
|
||||
cy.get(".nc-grid-row").should("have.length", rc);
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
// tn: table name
|
||||
// rc: row count. validate row count if rc!=0
|
||||
@@ -332,7 +332,9 @@ Cypress.Commands.add("createTable", (name) => {
|
||||
cy.getActiveModal(".nc-modal-table-create")
|
||||
.find("button.ant-btn-primary:visible")
|
||||
.click();
|
||||
cy.get(".xc-row-table.nc-grid").should("exist");
|
||||
|
||||
cy.gridWait(0);
|
||||
|
||||
cy.url().should("contain", `table/${name}`);
|
||||
cy.get(`.nc-project-tree-tbl-${name}`).should("exist");
|
||||
});
|
||||
|
||||
@@ -161,6 +161,21 @@ export class _mainPage {
|
||||
});
|
||||
};
|
||||
|
||||
addNewRowExpand(table) {
|
||||
cy.get(".nc-add-new-row-btn:visible").should("exist");
|
||||
cy.get(".nc-add-new-row-btn").click();
|
||||
|
||||
// cy.wait(2000);
|
||||
// cy.get(`.nc-tooltip-content:contains("Add new row")`).should("not.exist");
|
||||
|
||||
// 'Add new row' tooltip persists for a while; force click on header to make it disappear
|
||||
cy.get(
|
||||
`.nc-drawer-expanded-form .nc-expanded-form-header :contains("${table}")`
|
||||
)
|
||||
.should("exist")
|
||||
.click({ force: true });
|
||||
}
|
||||
|
||||
// addExistingUserToProject = (emailId, role) => {
|
||||
// cy.get('.v-list-item:contains("Team & Auth")').click();
|
||||
// cy.get(`tr:contains(${emailId})`)
|
||||
|
||||
Reference in New Issue
Block a user