File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
site/src/components/MultiSelectCombobox Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ const meta: Meta<typeof MultiSelectCombobox> = {
19
19
options : organizations . map ( ( org ) => ( {
20
20
label : org . display_name ,
21
21
value : org . id ,
22
- icon : org . icon ,
23
22
} ) ) ,
24
23
} ,
25
24
} ;
@@ -40,17 +39,17 @@ export const OpenCombobox: Story = {
40
39
} ,
41
40
} ;
42
41
43
- export const NoIcons : Story = {
42
+ export const WithIcons : Story = {
44
43
args : {
45
44
options : organizations . map ( ( org ) => ( {
46
45
label : org . display_name ,
47
46
value : org . id ,
47
+ icon : org . icon ,
48
48
} ) ) ,
49
49
} ,
50
50
play : async ( { canvasElement } ) => {
51
51
const canvas = within ( canvasElement ) ;
52
52
await userEvent . click ( canvas . getByPlaceholderText ( "Select organization" ) ) ;
53
-
54
53
await waitFor ( ( ) =>
55
54
expect ( canvas . getByText ( "My Organization" ) ) . toBeInTheDocument ( ) ,
56
55
) ;
You can’t perform that action at this time.
0 commit comments