Skip to content

Commit

Permalink
fix: attr QA for element
Browse files Browse the repository at this point in the history
Use same attribute for QA in all elements in fields mapping step

Reviewed-by: andriacap
  • Loading branch information
andriacap committed Jan 2, 2025
1 parent 147145a commit 1d5ce19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
[formControl]="form.get(formDefComp['attribut_name'])"
id="{{ formDefComp['attribut_name'] }}_{{ rand }}"
type="text"
data-qa="field-text-{{ formDefComp['attribut_name'] }}_{{ rand }}"
[attr.data-qa]="'field-text' + '-' + formDefComp['attribut_name'] + '_' + rand"
/>
<div
*ngIf="
Expand All @@ -67,7 +67,7 @@
[formControl]="form.get(formDefComp['attribut_name'])"
id="{{ formDefComp['attribut_name'] }}_{{ rand }}"
type="time"
[attr.data-qa]="'field-time' + formDefComp['attribut_name'] + '_' + rand"
[attr.data-qa]="'field-time' + '-' + formDefComp['attribut_name'] + '_' + rand"
/>

<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ <h5 class="card-title mb-0">{{ 'Import.FieldMapping.Title' | translate }}</h5>
class="entity-tab-label"
[matBadge]="invalidEntityControls(entitythemes.entity.label)"
[matBadgeHidden]="invalidEntityControls(entitythemes.entity.label) < 1"
[attr.data-qa]="'import-entity-tab-'+entitythemes.entity.label"
>
{{ entitythemes.entity.label }}
</span>
Expand Down

0 comments on commit 1d5ce19

Please sign in to comment.