diff --git a/alfa-client/apps/admin-e2e/src/components/organisationseinheiten/organisationseinheiten.e2e.component.ts b/alfa-client/apps/admin-e2e/src/components/organisationseinheiten/organisationseinheiten.e2e.component.ts index 617b8085a5eac0f65cf20d3c3a336150eaf8c4bd..0d644a241530e6b32d074d07bcdcb1ac38d3a4ef 100644 --- a/alfa-client/apps/admin-e2e/src/components/organisationseinheiten/organisationseinheiten.e2e.component.ts +++ b/alfa-client/apps/admin-e2e/src/components/organisationseinheiten/organisationseinheiten.e2e.component.ts @@ -17,6 +17,10 @@ export class OrganisationseinheitenE2EComponent { return cy.getTestElement(this.einheitenName).contains(einheit).should('exist'); } + public clickEinheit(einheit: string): void { + this.getListItemByName(einheit).click(); + } + public organisationseinheitContainsID(einheit: string, einheitID: string): void { this.getListItemByName(einheit) .parents('a') @@ -48,10 +52,6 @@ export class OrganisationseinheitenE2EComponent { notContainClass(this.getListItemByName(einheit).closest('ods-list-item'), this.errorColor); } - public getEinheitenEntry(einheit: string): Cypress.Chainable<Element> { - return cy.getTestElement(this.einheitenName); - } - public getSignaturText(): any { return cy.getTestElement(this.signaturText); }