Browse Source

chore(cypress): config update

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/510/head
Pranav C 3 years ago
parent
commit
9c1d060383
  1. 1
      cypress.json
  2. 6
      cypress/support/commands.js

1
cypress.json

@ -5,6 +5,5 @@
"viewportWidth": 1980, "viewportWidth": 1980,
"viewportHeight": 1000, "viewportHeight": 1000,
"video": false, "video": false,
"retries": 2,
"screenshotOnRunFailure": false "screenshotOnRunFailure": false
} }

6
cypress/support/commands.js

@ -155,15 +155,15 @@ Cypress.Commands.add("restoreLocalStorage", () => {
}); });
Cypress.Commands.add("getActiveModal", () => { Cypress.Commands.add("getActiveModal", () => {
return cy.get('.v-dialog.v-dialog--active') return cy.get('.v-dialog.v-dialog--active').last()
}); });
Cypress.Commands.add("getActiveMenu", () => { Cypress.Commands.add("getActiveMenu", () => {
return cy.get('.menuable__content__active') return cy.get('.menuable__content__active').last()
}); });
Cypress.Commands.add("getActiveModal", () => { Cypress.Commands.add("getActiveModal", () => {
return cy.get('.v-dialog__content--active') return cy.get('.v-dialog__content--active').last()
}); });

Loading…
Cancel
Save