Skip to content
Snippets Groups Projects

OZG-7507 use new open dialog button

Merged Sebastian Bergandy requested to merge OZG-7507-admin-organisationsEinheit-loeschen into main
Files
36
@@ -21,21 +21,52 @@
* Die sprachspezifischen Genehmigungen und Beschränkungen
* unter der Lizenz sind dem Lizenztext zu entnehmen.
*/
export class OrganisationsEinheitListE2EComponent {
private readonly root: string = 'organisations-einheit-list';
public getRoot(): Cypress.Chainable<Element> {
return cy.getTestElement(this.root);
}
public getListItem(name: string): OrganisationsEinheitListItemE2EComponent {
return new OrganisationsEinheitListItemE2EComponent(name);
}
}
export class OrganisationsEinheitListItemE2EComponent {
private root: string;
export class OrganisationsEinheitenE2EComponent {
private readonly organisationsEinheitenList: string = 'organisations-einheit-list';
private readonly organisationsEinheitHinzufuegen: string = 'add-organisationseinheit-button';
private readonly organisationsEinheitItemSuffix: string = '-organisation-item';
private readonly deleteButton: string = 'delete-button';
constructor(name: string) {
this.root = name;
}
public getRoot(): Cypress.Chainable<Element> {
return cy.getTestElement(this.root + this.organisationsEinheitItemSuffix);
}
public getDeleteButton(): Cypress.Chainable<Element> {
return this.getRoot().findTestElementWithClass(this.deleteButton);
}
}
export class OrganisationsEinheitDeleteDialogE2EComponent {
private readonly root: string = 'organisations-einheit-delete-dialog';
private readonly deleteButton: string = 'dialog-delete-button';
private readonly cancelButton: string = 'dialog-cancel-button';
public getOrganisationsEinheitList(): Cypress.Chainable<Element> {
return cy.getTestElement(this.organisationsEinheitenList);
public getRoot(): Cypress.Chainable<Element> {
return cy.getTestElement(this.root);
}
public getOrganisationsEinheitHinzufuegenButton(): Cypress.Chainable<Element> {
return cy.getTestElement(this.organisationsEinheitHinzufuegen);
public getDeleteButton(): Cypress.Chainable<Element> {
return cy.getTestElement(this.deleteButton);
}
public getListItem(name: string) {
return cy.getTestElement(name + this.organisationsEinheitItemSuffix);
public getCancelButton(): Cypress.Chainable<Element> {
return cy.getTestElement(this.cancelButton);
}
}
Loading