keycloak-scim/tests/cypress/integration/00_set_new_admin_console.spec.js
Aboullos 0cf9d3e578
Ignore login when user is already logged (#329)
* Add cookie check on Log in

* Change cookie check to body children check

* Add loadingContainer element

* Add old load container element

* Change quotes

* Disable video recording

* Replace quotes

* Refactor

* Change Cypress version
2021-01-27 07:47:57 -05:00

25 lines
No EOL
697 B
JavaScript

import LoginPage from '../support/pages/LoginPage.js'
import WelcomePage from '../support/pages/WelcomePage.js'
import OldClientPage from '../support/pages/admin_console/manage/clients/OldClientPage.js'
const loginPage = new LoginPage();
const welcomePage = new WelcomePage();
const oldClientPage = new OldClientPage();
describe("Set up test", function () {
beforeEach(function () {
cy.visit("http://localhost:8180/auth")
})
it("Create admin user and adds admin console client", function () {
welcomePage
.createAdminUser()
.goToAdminConsole();
loginPage.logIn();
oldClientPage
.goToClients()
.addNewAdminConsole();
});
})