8d72f8a705
* upgrade cypress * fixed delete now has dialog * also check "unAssign" * client type no longer required * providers and group changes * grp creation working * moved create realm button ouside the dropdown * sped up test and added cleanup * Revert "moved create realm button ouside the dropdown" This reverts commit e2076a5305808417de910ba8fada8e528e5c356a. * make test re-runnable * removed un needed navigation * Fix misformed Cypress config for GitHub Action * cleanup after test * fixed cleanup * temporary removed this test * also remove user "new" * try adding a wait for CI * get different modal id * add {force: true} to modal functions * mv grp search last and ignore 401 * try using cy.get and disable video for testing * add back video artifacts Co-authored-by: mfrances <mfrances@redhat.com> Co-authored-by: Jon Koops <jonkoops@gmail.com> Co-authored-by: jenny-s51 <jshandel@redhat.com>
27 lines
616 B
TypeScript
27 lines
616 B
TypeScript
export default class GroupModal {
|
|
private openButton = "openCreateGroupModal";
|
|
private nameInput = "groupNameInput";
|
|
private createButton = "createGroup";
|
|
private renameButton = "renameGroup";
|
|
|
|
open(name?: string) {
|
|
cy.getId(name || this.openButton).click();
|
|
return this;
|
|
}
|
|
|
|
fillGroupForm(name = "") {
|
|
cy.get('[data-testid=groupNameInput]').clear();
|
|
cy.get('[data-testid=groupNameInput]').type(name);
|
|
return this;
|
|
}
|
|
|
|
clickCreate() {
|
|
cy.getId(this.createButton).click();
|
|
return this;
|
|
}
|
|
|
|
clickRename() {
|
|
cy.getId(this.renameButton).click();
|
|
return this;
|
|
}
|
|
}
|