From 4b8654b7482199718686bf1d599b9a5b7b91f123 Mon Sep 17 00:00:00 2001 From: Martin <git@mail.de> Date: Fri, 21 Mar 2025 13:28:05 +0100 Subject: [PATCH] OZG-7473 rename getRootElement -> getRoot --- .../aggregation-mapping-form.e2e.component.ts | 7 ++++--- .../aggregation-mapping/aggregation-mapping.cy.ts | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/alfa-client/apps/admin-e2e/src/components/aggregation-mapping/aggregation-mapping-form.e2e.component.ts b/alfa-client/apps/admin-e2e/src/components/aggregation-mapping/aggregation-mapping-form.e2e.component.ts index 2545b8b6b6..e140ef0486 100644 --- a/alfa-client/apps/admin-e2e/src/components/aggregation-mapping/aggregation-mapping-form.e2e.component.ts +++ b/alfa-client/apps/admin-e2e/src/components/aggregation-mapping/aggregation-mapping-form.e2e.component.ts @@ -1,5 +1,6 @@ export class AggregationMappingFormE2EComponent { - private readonly rootElement: string = 'aggregation-mapping-form'; + private readonly root: string = 'aggregation-mapping-form'; + private readonly nameInput: string = 'aggregation-mapping-name-text-input'; private readonly formEngineInput: string = 'form-engine-name-text-input'; private readonly formIdInput: string = 'form-id-text-input'; @@ -11,8 +12,8 @@ export class AggregationMappingFormE2EComponent { private readonly saveButton: string = 'save-button'; private readonly cancelButton: string = 'cancel-button'; - public getRootElement(): Cypress.Chainable<Element> { - return cy.getTestElement(this.rootElement); + public getRoot(): Cypress.Chainable<Element> { + return cy.getTestElement(this.root); } public getNameInput(): Cypress.Chainable<Element> { diff --git a/alfa-client/apps/admin-e2e/src/e2e/main-tests/aggregation-mapping/aggregation-mapping.cy.ts b/alfa-client/apps/admin-e2e/src/e2e/main-tests/aggregation-mapping/aggregation-mapping.cy.ts index e1a594ff31..48a51be178 100644 --- a/alfa-client/apps/admin-e2e/src/e2e/main-tests/aggregation-mapping/aggregation-mapping.cy.ts +++ b/alfa-client/apps/admin-e2e/src/e2e/main-tests/aggregation-mapping/aggregation-mapping.cy.ts @@ -46,7 +46,7 @@ describe('Aggregation Mapping hinzufügen', () => { it('should show form after button click', () => { component.getWeitereFelderAuswertenButton().click(); - exist(formComponent.getRootElement()); + exist(formComponent.getRoot()); }); it('should navigate to aggregation mapping on cancel', () => { -- GitLab