Browse Source

test: unlock pwd share view stability

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3433/head
Raju Udava 2 years ago
parent
commit
d423684775
  1. 4
      scripts/cypress-v2/integration/common/4b_table_view_share.js
  2. 10
      scripts/cypress-v2/support/page_objects/mainPage.js

4
scripts/cypress-v2/integration/common/4b_table_view_share.js

@ -84,7 +84,9 @@ export const genTest = (apiType, dbType) => {
// if pwd is incorrect, active modal requesting to feed in password again will persist
// cy.getActiveModal().find('button:contains("Unlock")').should('not.exist');
cy.get(".ant-modal-content:visible").should("not.exist")
// cy.get(".ant-modal-content:visible").should("not.exist")
cy.wait(1000);
// Verify Download as CSV is here
mainPage.downloadCsv().should("exist");

10
scripts/cypress-v2/support/page_objects/mainPage.js

@ -264,27 +264,27 @@ export class _mainPage {
};
shareViewList = () => {
cy.get(".nc-actions-menu-btn").click();
cy.get(".nc-actions-menu-btn").should('exist').click();
return cy.getActiveMenu().find('.ant-dropdown-menu-item').contains('Shared View List');
};
downloadCsv = () => {
cy.get(".nc-actions-menu-btn").click();
cy.get(".nc-actions-menu-btn").should('exist').click();
return cy.getActiveMenu().find('.ant-dropdown-menu-item').contains('Download as CSV');
};
downloadExcel = () => {
cy.get(".nc-actions-menu-btn").click();
cy.get(".nc-actions-menu-btn").should('exist').click();
return cy.getActiveMenu().find('.ant-dropdown-menu-item').contains('Download as XLSX');
};
uploadCsv = () => {
cy.get(".nc-actions-menu-btn").click();
cy.get(".nc-actions-menu-btn").should('exist').click();
return cy.getActiveMenu().find('.ant-dropdown-menu-item').contains('Upload CSV');
};
automations = () => {
cy.get(".nc-actions-menu-btn").click();
cy.get(".nc-actions-menu-btn").should('exist').click();
return cy.getActiveMenu().find('.ant-dropdown-menu-item').contains('Webhooks');
};

Loading…
Cancel
Save