Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sam committed Feb 25, 2024
1 parent a4c809b commit 391a87c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cypress/e2e/keycloak/admin/admin1_can_login.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ describe('admin1 can login', function () {
cy.visit("/")
cy.get('#login').click()

cy.origin(keycloakUrl, () => {
cy.origin(keycloakUrl, { args: { keycloakUrl } }, ({ keycloakUrl }) => {
cy.log("fill in the login form")
cy.get('#username').type('admin1', {force: true})
cy.get('#password').type('password', {force: true})

// submit
cy.get('#kc-login').click()

// cy.location().then((location) => {
// if (location !== null && location.origin === keycloakUrl) {
// cy.get('#kc-login').click()
// } else {
// cy.log("not asked for access to user data")
// }
// })
cy.location().then((location) => {
if (location !== null && location.origin === keycloakUrl) {
cy.get('#kc-login').click()
} else {
cy.log("not asked for access to user data")
}
})
})

cy.log('home page banner contains "admin"')
Expand Down

0 comments on commit 391a87c

Please sign in to comment.