This commit is contained in:
2022-08-07 20:52:53 +00:00
parent 8f37876a9d
commit ed737536d5
2 changed files with 15 additions and 1 deletions

View File

@@ -1 +1 @@
./node_modules/.bin/cypress open --browser chrome --e2e
./node_modules/.bin/cypress open --browser firefox --e2e

View File

@@ -24,6 +24,20 @@
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
//For firefox only issue chrome ok when running all test since cypress v10
//https://docs.cypress.io/api/events/catalog-of-events#Uncaught-Exceptions
Cypress.on('uncaught:exception', (err, runnable, promise) => {
// when the exception originated from an unhandled promise
// rejection, the promise is provided as a third argument
// you can turn off failing the test in this case
if (promise) {
return false
}
// we still want to ensure there are no other unexpected
// errors, so we let them fail the test
})
Cypress.Commands.add("ayChooseVSelect", (dataCyTag, selectionText) => {
cy.get(`[data-cy='${dataCyTag}']`).click({ force: true });
cy.get(".v-list-item__title")