Skip to content

Commit

Permalink
CNV-52246: add data-test-id for sub-tabs under configuration and diag…
Browse files Browse the repository at this point in the history
…nostics
  • Loading branch information
gouyang committed Dec 4, 2024
1 parent c9cb011 commit d36a0f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const VirtualMachineConfigurationTab: FC<NavPageComponentProps> = ({ obj }) => {
{tabs.map(({ Component, name, title }) => (
<Tab
className="VirtualMachineConfigurationTab--content"
data-test-id={`vm-configuration-${name}`}
eventKey={name}
key={name}
onClick={() => redirectTab(name)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const VirtualMachineDiagnosticTab: FC<NavPageComponentProps> = ({ obj: vm }) =>
>
<Tab
className="VirtualMachineDiagnosticTab--main__content"
data-test-id="vm-diagnostics-status-conditions"
eventKey={VirtualMachineDetailsTab.Tables}
title={<TabTitleText>{t('Status & Conditions')}</TabTitleText>}
>
Expand All @@ -55,6 +56,7 @@ const VirtualMachineDiagnosticTab: FC<NavPageComponentProps> = ({ obj: vm }) =>
</Tab>
<Tab
className="VirtualMachineDiagnosticTab--main__content"
data-test-id="vm-diagnostics-guest-system-log"
eventKey={VirtualMachineDetailsTab.Logs}
title={<TabTitleText>{t('Guest system log')}</TabTitleText>}
>
Expand Down

0 comments on commit d36a0f8

Please sign in to comment.