Skip to content

Commit

Permalink
feat(hpc-vmware-managed-vcd): fix build - clipboard testid
Browse files Browse the repository at this point in the history
  desc: add testid property to clipboard components

Signed-off-by: Paul Dickerson <[email protected]>
  • Loading branch information
Paul Dickerson committed Sep 25, 2024
1 parent 153d9a3 commit 472a27d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,22 @@ export default function DatacentreGenerationInformationTile({
{
id: 'apiUrl',
label: t('managed_vcd_dashboard_api_url'),
value: <Clipboard value={vcdOrganization?.currentState?.apiUrl} />,
value: (
<Clipboard
value={vcdOrganization?.currentState?.apiUrl}
data-testid="clipboard-vdc-apiUrl"
/>
),
},
{
id: 'vdcId',
label: tVdc('managed_vcd_vdc_id'),
value: <Clipboard value={vcdDatacentre?.id} />,
value: (
<Clipboard
value={vcdDatacentre?.id}
data-testid="clipboard-vdc-Id"
/>
),
},
]}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ export default function OrganizationGenerationInformationTile({
{
id: 'apiUrl',
label: t('managed_vcd_dashboard_api_url'),
value: <Clipboard value={vcdOrganization.currentState?.apiUrl} />,
value: (
<Clipboard
value={vcdOrganization.currentState?.apiUrl}
data-testid="clipboard-vdc-apiUrl"
/>
),
},
]}
/>
Expand Down

0 comments on commit 472a27d

Please sign in to comment.