mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
PM-11468: Add data-testids for View Item pages (#11043)
* Add data test IDs for identity information. * Add data test IDs for custom fields.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
class="tw-border-secondary-300 [&_bit-form-field:last-of-type]:tw-mb-0"
|
||||
*ngFor="let field of cipher.fields; let last = last"
|
||||
[ngClass]="{ 'tw-mb-4': !last }"
|
||||
data-testid="custom-field"
|
||||
>
|
||||
<bit-form-field *ngIf="field.type === fieldType.Text" [disableReadOnlyBorder]="last">
|
||||
<bit-label>{{ field.name }}</bit-label>
|
||||
@@ -19,6 +20,7 @@
|
||||
showToast
|
||||
[valueLabel]="field.name"
|
||||
[appA11yTitle]="'copyValue' | i18n"
|
||||
data-testid="copy-custom-field"
|
||||
></button>
|
||||
</bit-form-field>
|
||||
<bit-form-field *ngIf="field.type === fieldType.Hidden" [disableReadOnlyBorder]="last">
|
||||
|
||||
Reference in New Issue
Block a user