keycloak-scim/tests/cypress/integration/00_set_new_admin_console.spec.js

25 lines
697 B
JavaScript
Raw Normal View History

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();
});
})