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 2545b8b6b63d5c3f5b8a47ebcddbc8e03af46a6e..e140ef04867eeb97212c840b44e44535696422e4 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 e1a594ff31d79d36cbe0e4ebdf240d90177f0f10..48a51be1788a5315081986693533d927ae3ffcd0 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', () => {