The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Trying to fix the infamous app palette loki flaky (#66935)
Sébastien0a213ebaa720
diff --git a/frontend/src/metabase/palette/components/Palette.stories.tsx b/frontend/src/metabase/palette/components/Palette.stories.tsxindex 1cdec3a39a6..5be98214730 100644--- a/frontend/src/metabase/palette/components/Palette.stories.tsx+++ b/frontend/src/metabase/palette/components/Palette.stories.tsx@@ -2,7 +2,7 @@import createAsyncCallback from "@loki/create-async-callback";import type { Store } from "@reduxjs/toolkit";import type { StoryFn } from "@storybook/react/*";-import { userEvent, within } from "@storybook/test";+import { expect, userEvent, within } from "@storybook/test";import { KBarProvider, VisualState, useKBar } from "kbar";import { HttpResponse, http } from "msw";import _ from "underscore";@@ -133,6 +133,12 @@ export const Search = {await canvas.findByRole("option", { name: "Results" });+ // Wait for the result to all show up because "Results" will be+ // present when the search query is still loading+ await expect(+ await canvas.findByText("Product breakdown"),+ ).toBeInTheDocument();+asyncCallback();},};