chore: add test for auto refresh button in logs explorer

This commit is contained in:
ahmadshaheer 2025-05-21 18:06:08 +04:30
parent 3490e3decc
commit 7a61129cb5

View File

@ -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(<LogsExplorer />);
await waitFor(() => {
expect(
getByRole('button', {
name: /sync/i,
}),
).toBeInTheDocument();
expect(
getByRole('button', {
name: /caret-down/i,
}),
).toBeInTheDocument();
});
});
});