1
0
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:
Alec Rippberger
2024-09-16 17:01:38 -05:00
committed by GitHub
parent d52ab5e343
commit 651f1e586a
2 changed files with 10 additions and 0 deletions

View File

@@ -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">