a48088765a
* fixed group section * simplified create group dialog * create subgroup * initial search groups * added initial search * add empty state and links to details * Added cypress tests * fixed types * changed to the more clear getId * changed to use testid * fixed merge error * fixed test * changed text for empty sub groups * fix merge error * fix test
21 lines
473 B
TypeScript
21 lines
473 B
TypeScript
export default class CreateGroupModal {
|
|
private openButton = "openCreateGroupModal";
|
|
private nameInput = "groupNameInput";
|
|
private createButton = "createGroup";
|
|
|
|
open(name?: string) {
|
|
cy.getId(name || this.openButton).click();
|
|
return this;
|
|
}
|
|
|
|
fillGroupForm(name = "") {
|
|
cy.getId(this.nameInput).clear();
|
|
cy.getId(this.nameInput).type(name);
|
|
return this;
|
|
}
|
|
|
|
clickCreate() {
|
|
cy.getId(this.createButton).click();
|
|
return this;
|
|
}
|
|
}
|