mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-12 18:22:49 +01:00
Add simple auth (#186)
This commit is contained in:
@@ -4,3 +4,20 @@
|
||||
// ***********************************************************
|
||||
|
||||
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();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user