Browse Source

test (cypress): user profile suite stability- tab

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/843/head
Raju Udava 3 years ago
parent
commit
7cbabbc0c7
  1. 2
      scripts/cypress/integration/common/5b_preview_role.js
  2. 2
      scripts/cypress/support/commands.js

2
scripts/cypress/integration/common/5b_preview_role.js

@ -24,6 +24,7 @@ export const genTest = (type, xcdb, roleType) => {
// Sign in/ open project
before(() => {
loginPage.loginAndOpenProject(type, xcdb);
cy.openTableTab("City", 25);
});
after(() => {
@ -44,7 +45,6 @@ export const genTest = (type, xcdb, roleType) => {
it(`Role preview: ${roleType}: Enable preview`, () => {
cy.get(`.nc-preview-${roleType}`).click();
cy.openTableTab("City", 25);
});
it(`Role preview: ${roleType}: Advance settings`, () => {

2
scripts/cypress/support/commands.js

@ -121,7 +121,7 @@ Cypress.Commands.add("openTableTab", (tn, rc) => {
.first()
.click({ force: true });
cy.get(`.project-tab:contains(${tn}):visible`).should("exist");
cy.get(`.project-tab`).contains(tn, { timeout: 10000 }).should("exist");
cy.get(".nc-project-tree")
.find(".v-list-item__title:contains(Tables)", { timeout: 10000 })

Loading…
Cancel
Save