Skip to content
Snippets Groups Projects
Commit 4d63c4e8 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6967 add method for click

parent 3ec36944
Branches
Tags
Loading
...@@ -17,6 +17,10 @@ export class OrganisationseinheitenE2EComponent { ...@@ -17,6 +17,10 @@ export class OrganisationseinheitenE2EComponent {
return cy.getTestElement(this.einheitenName).contains(einheit).should('exist'); 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 { public organisationseinheitContainsID(einheit: string, einheitID: string): void {
this.getListItemByName(einheit) this.getListItemByName(einheit)
.parents('a') .parents('a')
...@@ -48,10 +52,6 @@ export class OrganisationseinheitenE2EComponent { ...@@ -48,10 +52,6 @@ export class OrganisationseinheitenE2EComponent {
notContainClass(this.getListItemByName(einheit).closest('ods-list-item'), this.errorColor); 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 { public getSignaturText(): any {
return cy.getTestElement(this.signaturText); return cy.getTestElement(this.signaturText);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment