mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 12:04:56 -07:00
Jacob314/add radio button keys (#10083)
This commit is contained in:
@@ -62,9 +62,9 @@ describe('RadioButtonSelect', () => {
|
||||
const mockOnHighlight = vi.fn();
|
||||
|
||||
const ITEMS: Array<RadioSelectItem<string>> = [
|
||||
{ label: 'Option 1', value: 'one' },
|
||||
{ label: 'Option 2', value: 'two' },
|
||||
{ label: 'Option 3', value: 'three', disabled: true },
|
||||
{ label: 'Option 1', value: 'one', key: 'one' },
|
||||
{ label: 'Option 2', value: 'two', key: 'two' },
|
||||
{ label: 'Option 3', value: 'three', disabled: true, key: 'three' },
|
||||
];
|
||||
|
||||
const renderComponent = (
|
||||
@@ -155,6 +155,7 @@ describe('RadioButtonSelect', () => {
|
||||
value: 'a-light',
|
||||
themeNameDisplay: 'Theme A',
|
||||
themeTypeDisplay: '(Light)',
|
||||
key: 'a-light',
|
||||
};
|
||||
|
||||
const result = renderItem(themeItem, mockContext);
|
||||
@@ -186,6 +187,7 @@ describe('RadioButtonSelect', () => {
|
||||
label: 'Incomplete Theme',
|
||||
value: 'incomplete',
|
||||
themeNameDisplay: 'Only Name',
|
||||
key: 'incomplete',
|
||||
};
|
||||
|
||||
const result = renderItem(partialThemeItem, mockContext);
|
||||
|
||||
Reference in New Issue
Block a user