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
fix(test): resolve flaky TablePicker visibility layer test (#75721)
github-automation-metabase3fbfb979e8f2
diff --git a/frontend/src/metabase/data-studio/data-model/components/TablePicker/components/TablePicker.unit.spec.tsx b/frontend/src/metabase/data-studio/data-model/components/TablePicker/components/TablePicker.unit.spec.tsxindex c70b86da969..8c86ed26c35 100644--- a/frontend/src/metabase/data-studio/data-model/components/TablePicker/components/TablePicker.unit.spec.tsx+++ b/frontend/src/metabase/data-studio/data-model/components/TablePicker/components/TablePicker.unit.spec.tsx@@ -409,15 +409,9 @@ describe("TablePicker", () => {setup({ databases: [layerDatabase] });await waitLoading();- // single-schema databases auto-expand to their tables on click- await clickItem(layerDatabase);- await waitLoading();-- // The auto-expansion re-renders the tree with the tables after- // waitLoading resolves, so wait for the first table to appear.- await waitFor(() => {- expect(item(hiddenTable)).toBeInTheDocument();- });+ expect(+ await screen.findByText(hiddenTable.display_name),+ ).toBeInTheDocument();expect(item(finalTable)).toBeInTheDocument();const labels = screen