We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bac2551 commit c1e6f48Copy full SHA for c1e6f48
site/src/modules/management/OrganizationSidebarView.stories.tsx
@@ -346,7 +346,10 @@ export const OrgsSortedAlphabetically: Story = {
346
});
347
348
const orgElements = globalScreen.getAllByRole("option");
349
- const orgNames = orgElements.map(
+ // filter out Create btn
350
+ const filteredElems = orgElements.slice(0, 3);
351
+
352
+ const orgNames = filteredElems.map(
353
// handling fuzzy matching
354
(el) => el.textContent?.replace(/^[A-Z]/, "").trim() || "",
355
);
0 commit comments