keycloak-scim/tests/cypress/integration/00_set_new_admin_console.spec.js
Aboullos daec4957f2
Add cypress framework (#271)
* Add cypress framework

* Add PR change requests

* Add initial .yml file for cypress tests

* Modify Run Keycloak line

* Modify Run Keycloak lines

* Modify Cypress test run

* Modify wait times

* Add more time

* Modify yarn start to npx http-server

* Try Cypress separate step

* Add test to set new admin console

* Modify uses to run

* Change yarn to npx http-server

* Add parameter to npx http-server

* Trigger GitHub actions

* Trigger GitHub actions

* Modify client_scope test messages

* Set headless mode

* Add steps to store artifacts

* Modify .yml

* Rebase onto realm fix and update real role message

* Update yaml file for artifact upload
2021-01-12 12:04:52 -05:00

28 lines
No EOL
811 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'
describe('Set up test', function () {
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();
});
})
})