daec4957f2
* 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
25 lines
No EOL
758 B
JavaScript
25 lines
No EOL
758 B
JavaScript
export default class CreateRealmPage {
|
|
|
|
constructor() {
|
|
this.browseBtn = '#kc-realm-filename-browse-button';
|
|
this.clearBtn = '.pf-c-file-upload__file-select button:last-child';
|
|
this.realmFileNameInput = '#kc-realm-filename';
|
|
this.realmNameInput = '#kc-realm-name';
|
|
this.enabledSwitch = '[for="kc-realm-enabled-switch"] span.pf-c-switch__toggle';
|
|
|
|
this.createBtn = '.pf-c-form__group:last-child button[type="submit"]';
|
|
this.cancelBtn = '.pf-c-form__group:last-child button[type="button"]';
|
|
}
|
|
|
|
fillRealmName(realmName) {
|
|
cy.get(this.realmNameInput).type(realmName);
|
|
|
|
return this;
|
|
}
|
|
|
|
createRealm() {
|
|
cy.get(this.createBtn).click();
|
|
|
|
return this;
|
|
}
|
|
} |