Skip to content

Commit c1e6f48

Browse files
committed
filter button out
1 parent bac2551 commit c1e6f48

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

site/src/modules/management/OrganizationSidebarView.stories.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,10 @@ export const OrgsSortedAlphabetically: Story = {
346346
});
347347

348348
const orgElements = globalScreen.getAllByRole("option");
349-
const orgNames = orgElements.map(
349+
// filter out Create btn
350+
const filteredElems = orgElements.slice(0, 3);
351+
352+
const orgNames = filteredElems.map(
350353
// handling fuzzy matching
351354
(el) => el.textContent?.replace(/^[A-Z]/, "").trim() || "",
352355
);

0 commit comments

Comments
 (0)