Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c7827b

Browse files
committed
done
1 parent 7e6918c commit 5c7827b

File tree

2 files changed

+109
-1
lines changed

2 files changed

+109
-1
lines changed

site/src/components/MultiSelectCombobox/MultiSelectCombobox.stories.tsx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,23 @@ export const OpenCombobox: Story = {
4040
},
4141
};
4242

43+
export const NoIcons: Story = {
44+
args: {
45+
options: organizations.map((org) => ({
46+
label: org.display_name,
47+
value: org.id,
48+
})),
49+
},
50+
play: async ({ canvasElement }) => {
51+
const canvas = within(canvasElement);
52+
await userEvent.click(canvas.getByPlaceholderText("Select organization"));
53+
54+
await waitFor(() =>
55+
expect(canvas.getByText("My Organization")).toBeInTheDocument(),
56+
);
57+
},
58+
};
59+
4360
export const SelectComboboxItem: Story = {
4461
play: async ({ canvasElement }) => {
4562
const canvas = within(canvasElement);
@@ -100,7 +117,7 @@ export const ClearAllComboboxItems: Story = {
100117
},
101118
};
102119

103-
export const WithGroupedIcons: Story = {
120+
export const WithGroups: Story = {
104121
args: {
105122
placeholder: "Make a playlist",
106123
groupBy: "album",

site/static/icon/k8s.svg

Lines changed: 91 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)