add testids for automation testing (#10170)

This commit is contained in:
Nick Krantz 2024-07-19 11:31:33 -05:00 committed by GitHub
parent 087440989e
commit 11669da911
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -3,7 +3,12 @@
<h2 bitTypography="h5">{{ "customFields" | i18n }}</h2>
</bit-section-header>
<form [formGroup]="customFieldsForm">
<bit-card formArrayName="fields" cdkDropList (cdkDropListDropped)="drop($event)">
<bit-card
formArrayName="fields"
cdkDropList
(cdkDropListDropped)="drop($event)"
data-testid="custom-fields"
>
<div
*ngFor="let field of fields.controls; let i = index"
[formGroupName]="i"
@ -11,6 +16,7 @@
[ngClass]="{
'tw-items-center': field.value.type === FieldType.Boolean
}"
[attr.data-testid]="field.value.name + '-entry'"
cdkDrag
#customFieldRow
>