1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-21 11:35:34 +01:00

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

View File

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