From 4d63c4e81d74bdd7b05108f06cfa88cb9bc9a981 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Wed, 13 Nov 2024 11:12:38 +0100 Subject: [PATCH] OZG-6967 add method for click --- .../organisationseinheiten.e2e.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 617b8085a5..0d644a2415 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); } -- GitLab