Browse Source

fix: cypress corrections for new menu

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/2851/head
Raju Udava 2 years ago
parent
commit
d63fb1b41d
  1. 13
      scripts/cypress/support/page_objects/mainPage.js

13
scripts/cypress/support/page_objects/mainPage.js

@ -251,22 +251,27 @@ export class _mainPage {
shareViewList = () => {
cy.get(".nc-actions-menu-btn").click();
return cy.getActiveMenu().find('[role="menuitem"]').eq(2);
return cy.getActiveMenu().find('[role="menuitem"]').contains("Shared View List");
};
downloadCsv = () => {
cy.get(".nc-actions-menu-btn").click();
return cy.getActiveMenu().find('[role="menuitem"]').eq(0);
return cy.getActiveMenu().find('[role="menuitem"]').contains("Download as CSV");
};
downloadExcel = () => {
cy.get(".nc-actions-menu-btn").click();
return cy.getActiveMenu().find('[role="menuitem"]').contains("Download as XLSX");
};
uploadCsv = () => {
cy.get(".nc-actions-menu-btn").click();
return cy.getActiveMenu().find('[role="menuitem"]').eq(1);
return cy.getActiveMenu().find('[role="menuitem"]').contains("Upload CSV");
};
automations = () => {
cy.get(".nc-actions-menu-btn").click();
return cy.getActiveMenu().find('[role="menuitem"]').eq(3);
return cy.getActiveMenu().find('[role="menuitem"]').contains("Webhooks");
};
hideField = (field) => {

Loading…
Cancel
Save