This commit is contained in:
@@ -1 +1 @@
|
|||||||
./node_modules/.bin/cypress open --browser chrome --e2e
|
./node_modules/.bin/cypress open --browser firefox --e2e
|
||||||
|
|||||||
@@ -24,6 +24,20 @@
|
|||||||
// -- This will overwrite an existing command --
|
// -- This will overwrite an existing command --
|
||||||
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
|
// 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) => {
|
Cypress.Commands.add("ayChooseVSelect", (dataCyTag, selectionText) => {
|
||||||
cy.get(`[data-cy='${dataCyTag}']`).click({ force: true });
|
cy.get(`[data-cy='${dataCyTag}']`).click({ force: true });
|
||||||
cy.get(".v-list-item__title")
|
cy.get(".v-list-item__title")
|
||||||
|
|||||||
Reference in New Issue
Block a user