2021-01-12 17:04:52 +00:00
|
|
|
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'
|
|
|
|
|
2021-01-27 12:47:57 +00:00
|
|
|
const loginPage = new LoginPage();
|
|
|
|
const welcomePage = new WelcomePage();
|
|
|
|
const oldClientPage = new OldClientPage();
|
2021-01-12 17:04:52 +00:00
|
|
|
|
2021-01-27 12:47:57 +00:00
|
|
|
describe("Set up test", function () {
|
|
|
|
beforeEach(function () {
|
|
|
|
cy.visit("http://localhost:8180/auth")
|
|
|
|
})
|
2021-01-12 17:04:52 +00:00
|
|
|
|
2021-01-27 12:47:57 +00:00
|
|
|
it("Create admin user and adds admin console client", function () {
|
|
|
|
welcomePage
|
|
|
|
.createAdminUser()
|
|
|
|
.goToAdminConsole();
|
2021-01-12 17:04:52 +00:00
|
|
|
|
2021-01-27 12:47:57 +00:00
|
|
|
loginPage.logIn();
|
2021-01-12 17:04:52 +00:00
|
|
|
|
2021-01-27 12:47:57 +00:00
|
|
|
oldClientPage
|
|
|
|
.goToClients()
|
|
|
|
.addNewAdminConsole();
|
|
|
|
});
|
|
|
|
})
|