Browse Source

test: stability - toast wait, project menu handling fix, reduced project name

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3434/head
Raju Udava 2 years ago
parent
commit
ec94f2478f
  1. 5
      scripts/cypress-v2/integration/spec/roleValidation.spec.js
  2. 7
      scripts/cypress-v2/support/commands.js
  3. 2
      scripts/cypress-v2/support/page_objects/projectConstants.js

5
scripts/cypress-v2/integration/spec/roleValidation.spec.js

@ -10,8 +10,13 @@ export function _advSettings(roleType, mode) {
cy.log(roleType, mode);
if(mode === 'baseShare') {
// open modal
cy.get('.nc-project-menu').should('exist').click()
cy.getActiveMenu().find(`[data-menu-id="language"]`).should('exist')
// click again to close modal
cy.get('.nc-project-menu').should('exist').click()
return;
}

7
scripts/cypress-v2/support/commands.js

@ -378,14 +378,9 @@ Cypress.Commands.add("createColumn", (table, columnName) => {
});
Cypress.Commands.add("toastWait", (msg) => {
cy.get('.ant-message-notice-content:visible', { timout: 30000 }).should('exist')
cy.get('.ant-message-notice-content:visible', { timout: 12000 }).contains(msg).should('exist')
cy.get('.ant-message-notice-content:visible', { timout: 12000 }).should('not.exist')
// cy.get(".toasted:visible", { timout: 12000 }).contains(msg).should("exist");
// cy.get(".toasted:visible", { timout: 12000 })
// .contains(msg)
// .should("not.exist");
// cy.wait(3000);
});
// vn: view name

2
scripts/cypress-v2/support/page_objects/projectConstants.js

@ -113,7 +113,7 @@ export const staticProjects = {
config: defaultDbParams,
},
pgExternalREST: {
basic: { dbType: "external", apiType: "REST", name: "pgExternalREST" },
basic: { dbType: "external", apiType: "REST", name: "pgExtREST" },
config: defaultPgDbParams,
},
pgExternalGQL: {

Loading…
Cancel
Save