mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-16 05:55:53 +08:00
chore: add test for auto refresh button in logs explorer
This commit is contained in:
parent
3490e3decc
commit
7a61129cb5
@ -236,4 +236,22 @@ describe('Logs Explorer Tests', () => {
|
|||||||
await fireEvent.click(histogramToggle);
|
await fireEvent.click(histogramToggle);
|
||||||
expect(queryByText(frequencyChartContent)).not.toBeInTheDocument();
|
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();
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user