mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 11:16:40 +00:00
test: CY basic tests for Kanban
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
@@ -288,6 +288,18 @@ export class _mainPage {
|
||||
return cy.getActiveMenu(".nc-dropdown-actions-menu").find('.ant-dropdown-menu-item').contains('Webhooks');
|
||||
};
|
||||
|
||||
hideAllColumns = () => {
|
||||
cy.get(".nc-fields-menu-btn").should('exist').click();
|
||||
cy.getActiveMenu(".nc-dropdown-fields-menu").find('.ant-btn').contains('Hide all').click();
|
||||
cy.get(".nc-fields-menu-btn").should('exist').click();
|
||||
}
|
||||
|
||||
showAllColumns = () => {
|
||||
cy.get(".nc-fields-menu-btn").should('exist').click();
|
||||
cy.getActiveMenu(".nc-dropdown-fields-menu").find('.ant-btn').contains('Show all').click();
|
||||
cy.get(".nc-fields-menu-btn").should('exist').click();
|
||||
}
|
||||
|
||||
hideField = (field) => {
|
||||
cy.get(`th[data-title="${field}"]`).should("be.visible");
|
||||
cy.get(".nc-fields-menu-btn").click();
|
||||
@@ -299,15 +311,20 @@ export class _mainPage {
|
||||
cy.get(`th[data-title="${field}"]`).should("not.exist");
|
||||
};
|
||||
|
||||
unhideField = (field) => {
|
||||
cy.get(`th[data-title="${field}"]`).should("not.exist");
|
||||
unhideField = (field, viewType = 'grid') => {
|
||||
if(viewType === 'grid') {
|
||||
cy.get(`th[data-title="${field}"]`).should("not.exist");
|
||||
}
|
||||
cy.get(".nc-fields-menu-btn").click();
|
||||
cy.wait(500)
|
||||
cy.getActiveMenu(".nc-dropdown-fields-menu").find(`.nc-fields-list label:contains(${field}):visible`).click();
|
||||
cy.wait(500)
|
||||
cy.get(".nc-fields-menu-btn").click();
|
||||
cy.wait(500)
|
||||
cy.get(`th[data-title="${field}"]`).should("be.visible");
|
||||
|
||||
if(viewType === 'grid') {
|
||||
cy.get(`th[data-title="${field}"]`).should("be.visible");
|
||||
}
|
||||
};
|
||||
|
||||
sortField = (field, criteria) => {
|
||||
|
||||
Reference in New Issue
Block a user