5227115f05
* Add Clients tests and fix notification message * Remove TODO message * Add waits and refactor * Refactor and fix tests in realm settings * Fix lint * Refactor, fix tests and add stability * Refactor and stabilize tests * Stabilize tests * Fix Realm settings event test and stabilize * Set confirmModal to always force click * Add force click and wait * Fix masthead test * Modify cypress.json * Modify realm dropdown selector * Revert hook changes
28 lines
791 B
TypeScript
28 lines
791 B
TypeScript
export default class CreateRealmPage {
|
|
private browseBtn = "#kc-realm-filename-browse-button";
|
|
private clearBtn = ".pf-c-file-upload__file-select button:last-child";
|
|
private realmFileNameInput = "#kc-realm-filename";
|
|
private realmNameInput = "#kc-realm-name";
|
|
private enabledSwitch =
|
|
'[for="kc-realm-enabled-switch"] span.pf-c-switch__toggle';
|
|
private createBtn = '.pf-c-form__group:last-child button[type="submit"]';
|
|
private cancelBtn = '.pf-c-form__group:last-child button[type="button"]';
|
|
|
|
fillRealmName(realmName: string) {
|
|
cy.get(this.realmNameInput).clear().type(realmName);
|
|
|
|
return this;
|
|
}
|
|
|
|
createRealm() {
|
|
cy.get(this.createBtn).click();
|
|
|
|
return this;
|
|
}
|
|
|
|
cancelRealmCreation() {
|
|
cy.get(this.cancelBtn).click();
|
|
|
|
return this;
|
|
}
|
|
}
|