From ff21f941df77105351d5ff8ce4b912c68007d30a Mon Sep 17 00:00:00 2001 From: Joey <90795735+joey-grafana@users.noreply.github.com> Date: Wed, 7 Feb 2024 10:21:53 +0000 Subject: [PATCH] Parca: Fix flaky test (#81968) Fix flaky test --- .../plugins/datasource/parca/QueryEditor/QueryEditor.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/parca/QueryEditor/QueryEditor.test.tsx b/public/app/plugins/datasource/parca/QueryEditor/QueryEditor.test.tsx index 3f4ea1620ab..8837006aed5 100644 --- a/public/app/plugins/datasource/parca/QueryEditor/QueryEditor.test.tsx +++ b/public/app/plugins/datasource/parca/QueryEditor/QueryEditor.test.tsx @@ -13,7 +13,7 @@ describe('QueryEditor', () => { it('should render without error', async () => { setup(); - expect(screen.findByText('process_cpu:cpu')).toBeDefined(); + expect(await screen.findByText(/process_cpu - cpu/)).toBeDefined(); }); it('should render options', async () => {