From 7a61129cb55821c1e08f9fe1608f4fb793957f0c Mon Sep 17 00:00:00 2001 From: ahmadshaheer Date: Wed, 21 May 2025 18:06:08 +0430 Subject: [PATCH] chore: add test for auto refresh button in logs explorer --- .../__tests__/LogsExplorer.test.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/frontend/src/pages/LogsExplorer/__tests__/LogsExplorer.test.tsx b/frontend/src/pages/LogsExplorer/__tests__/LogsExplorer.test.tsx index 1b1e3d8417..1c8aeec9e1 100644 --- a/frontend/src/pages/LogsExplorer/__tests__/LogsExplorer.test.tsx +++ b/frontend/src/pages/LogsExplorer/__tests__/LogsExplorer.test.tsx @@ -236,4 +236,22 @@ describe('Logs Explorer Tests', () => { await fireEvent.click(histogramToggle); expect(queryByText(frequencyChartContent)).not.toBeInTheDocument(); }); + + test('check that auto refresh is present in toolbar', async () => { + const { getByRole } = render(); + + await waitFor(() => { + expect( + getByRole('button', { + name: /sync/i, + }), + ).toBeInTheDocument(); + + expect( + getByRole('button', { + name: /caret-down/i, + }), + ).toBeInTheDocument(); + }); + }); });