0cf9d3e578
* 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
25 lines
No EOL
697 B
JavaScript
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();
|
|
});
|
|
}) |