Skip to content

Commit

Permalink
Merge pull request #2298 from gouyang/add_datatestid
Browse files Browse the repository at this point in the history
CNV-52246: add data-test-id for sub-tabs under configuration and diag…
  • Loading branch information
openshift-merge-bot[bot] authored Dec 5, 2024
2 parents c9cb011 + d36a0f8 commit f59712f
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 f59712f

Please sign in to comment.