From 09e0dbb3508c91625c3727fc9fb6af97f54f392b Mon Sep 17 00:00:00 2001
From: sebo <sebastian.bergandy@external.mgm-cp.com>
Date: Sun, 23 Mar 2025 11:08:00 +0100
Subject: [PATCH] OZG-7473 make data test ids unique

Based on CR comment.
---
 .../aggregation-mapping-form.component.html                   | 4 ++--
 .../aggregation-mapping-form.component.spec.ts                | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/alfa-client/libs/admin/aggregation-mapping/src/lib/aggregation-mapping-form-container/aggregation-mapping-form/aggregation-mapping-form.component.html b/alfa-client/libs/admin/aggregation-mapping/src/lib/aggregation-mapping-form-container/aggregation-mapping-form/aggregation-mapping-form.component.html
index b69813d98a..346b7322dd 100644
--- a/alfa-client/libs/admin/aggregation-mapping/src/lib/aggregation-mapping-form-container/aggregation-mapping-form/aggregation-mapping-form.component.html
+++ b/alfa-client/libs/admin/aggregation-mapping/src/lib/aggregation-mapping-form-container/aggregation-mapping-form/aggregation-mapping-form.component.html
@@ -21,7 +21,7 @@
           label="Formengine"
           placeholder="Tragen Sie hier die Formengine des Formulars ein."
           isRequired="true"
-          data-test-id="form-engine-name"
+          data-test-id="form-engine-name-text-editor"
           dataTestId="form-engine-name"
         ></ods-text-editor>
         <ods-text-editor
@@ -30,7 +30,7 @@
           label="FormID"
           placeholder="Tragen Sie hier die FormID des Formulars ein."
           isRequired="true"
-          data-test-id="form-id"
+          data-test-id="form-id-text-editor"
           dataTestId="form-id"
         ></ods-text-editor>
       </div>
diff --git a/alfa-client/libs/admin/aggregation-mapping/src/lib/aggregation-mapping-form-container/aggregation-mapping-form/aggregation-mapping-form.component.spec.ts b/alfa-client/libs/admin/aggregation-mapping/src/lib/aggregation-mapping-form-container/aggregation-mapping-form/aggregation-mapping-form.component.spec.ts
index e6a2b6989c..30708be6ae 100644
--- a/alfa-client/libs/admin/aggregation-mapping/src/lib/aggregation-mapping-form-container/aggregation-mapping-form/aggregation-mapping-form.component.spec.ts
+++ b/alfa-client/libs/admin/aggregation-mapping/src/lib/aggregation-mapping-form-container/aggregation-mapping-form/aggregation-mapping-form.component.spec.ts
@@ -27,8 +27,8 @@ describe('AggregationMappingFormComponent', () => {
   let component: AggregationMappingFormComponent;
   let fixture: ComponentFixture<AggregationMappingFormComponent>;
 
-  const formEngineNameInputTestId: string = getDataTestIdOf('form-engine-name');
-  const formIdInputTestId: string = getDataTestIdOf('form-id');
+  const formEngineNameInputTestId: string = getDataTestIdOf('form-engine-name-text-editor');
+  const formIdInputTestId: string = getDataTestIdOf('form-id-text-editor');
   const addMappingButton: string = getDataTestIdOf('add-mapping');
 
   const aggregationMappingStateResource: StateResource<AggregationMappingResource> = createStateResource(
-- 
GitLab