mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-07 07:42:45 +01:00
@@ -24,5 +24,11 @@ Cypress.Commands.add('login', (options = {}) => {
|
||||
cy.get("#username").type("bob");
|
||||
cy.get("#password").type("bob");
|
||||
cy.get("#kc-login").click();
|
||||
} else if (Cypress.env('AUTH') === 'authelia') {
|
||||
cy.contains("Login with OIDC").should('be.visible').click();
|
||||
cy.get("#username-textfield").should('be.visible').type("bob");
|
||||
cy.get("#password-textfield").type("bob");
|
||||
cy.get("#sign-in-button").click();
|
||||
cy.get("#accept-button").should('be.visible').click();
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user