diff --git a/packages/react-core/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopy.test.tsx.snap b/packages/react-core/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopy.test.tsx.snap index ea17ba07738..9b881779f24 100644 --- a/packages/react-core/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopy.test.tsx.snap +++ b/packages/react-core/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopy.test.tsx.snap @@ -14,7 +14,6 @@ exports[`ClipboardCopy should match snapshot (auto-generated) 1`] = ` class="pf-v5-c-form-control" > , 'onChange' | 'onFocus' | 'onBlur' | 'disabled' | 'ref'>, OUIAProps { @@ -33,8 +38,10 @@ export interface TextInputProps className?: string; /** Flag to show if the text input is disabled. */ isDisabled?: boolean; - /** Flag to apply expanded styling */ + /** @deprecated Flag to apply expanded styling */ isExpanded?: boolean; + /** Prop to apply expanded styling to the text input and link it toe the element it is controlling. This should be used when the input controls a menu and tha menu is expanded. */ + expandedProps?: TextinputExpandedObj; /** Sets the input as readonly and determines the readonly styling. */ readOnlyVariant?: 'plain' | 'default'; /** Flag indicating whether the input is required */ @@ -182,6 +189,7 @@ export class TextInputBase extends React.Component { expect(trimLeftFn).toHaveBeenCalled(); }); - test('has aria-expanded set to true when isExpanded is true', () => { - render(); + test('has aria-expanded set to true when ariaProps.isExpanded is true', () => { + render(); const input = screen.getByLabelText('isExpanded'); expect(input).toHaveAttribute('aria-expanded', 'true'); + expect(input).toHaveAttribute('role', 'combobox'); + expect(input).toHaveAttribute('aria-controls', 'test'); }); }); diff --git a/packages/react-core/src/components/TextInput/__tests__/__snapshots__/TextInput.test.tsx.snap b/packages/react-core/src/components/TextInput/__tests__/__snapshots__/TextInput.test.tsx.snap index 317c20ca24d..18e5cc29bea 100644 --- a/packages/react-core/src/components/TextInput/__tests__/__snapshots__/TextInput.test.tsx.snap +++ b/packages/react-core/src/components/TextInput/__tests__/__snapshots__/TextInput.test.tsx.snap @@ -6,7 +6,6 @@ exports[`TextInput default read only text input 1`] = ` class="pf-v5-c-form-control pf-m-readonly" >