Upgrade Cypress (#245)

This commit is contained in:
Jonas Plum
2022-06-14 15:59:35 +02:00
committed by GitHub
parent 48459b8a8b
commit 7caf676571
9 changed files with 44 additions and 34 deletions

23
ui/cypress/support/e2e.js Normal file
View File

@@ -0,0 +1,23 @@
// ***********************************************************
// global configuration
// https://on.cypress.io/configuration
// ***********************************************************
import './commands'
Cypress.Cookies.defaults({
preserve: 'user',
})
Cypress.on('uncaught:exception', (err, runnable) => {
return false
})
Cypress.Commands.add('login', (options = {}) => {
// login
cy.contains("Name").click({force: true});
cy.get("#username").type("tom");
cy.contains("Password").click({force: true});
cy.get("#password").type("tom");
cy.get("button").contains("Login").click();
})