mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
add testids for automation testing (#10170)
This commit is contained in:
@@ -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
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user