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:
parent
087440989e
commit
11669da911
@ -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
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user