Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions static/app/views/explore/metrics/metricsTab.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -731,5 +731,14 @@ describe('MetricsTabContent (tracemetrics-ui-refresh)', () => {
await waitFor(() => {
expect(screen.getAllByTestId('metric-toolbar')).toHaveLength(1);
});

// Wait for the SearchQueryBuilderCombobox inside the re-expanded sidebar to
// finish initialising, otherwise its async state updates fire after the test
// ends and trigger an act() warning that jest-fail-on-console catches.
await waitFor(() => {
expect(
within(screen.getAllByTestId('metric-toolbar')[0]!).getByRole('combobox')
).toBeInTheDocument();
});
});
});
Loading