Wizard: Move ouiaId from Select component to MenuToggle

This moves the `ouiaId` since it didn't get correctly assigned while in `Select`. It's readable under the `MenuToggle`.
This commit is contained in:
regexowl 2025-03-13 14:46:07 +01:00 committed by Lucas Garfield
parent 53625ed190
commit 52398547f8
4 changed files with 5 additions and 5 deletions

View file

@ -46,6 +46,7 @@ export const AzureHyperVSelect = () => {
const toggle = (toggleRef: React.Ref<MenuToggleElement>) => (
<MenuToggle
ouiaId="hyperv_gen_select"
ref={toggleRef}
data-testid="azure-hyper-v-generation-select"
onClick={() => setIsOpen(!isOpen)}
@ -60,7 +61,6 @@ export const AzureHyperVSelect = () => {
<>
<FormGroup isRequired label="HyperV Generation">
<Select
ouiaId="hyperv_gen_select"
isScrollable
isOpen={isOpen}
selected={hyperVGeneration === 'V1' ? 'Generation 1' : 'Generation 2'}