mirror of https://github.com/grafana/grafana.git
Update tests
This commit is contained in:
parent
64c5ebcca6
commit
570e212fb0
|
@ -446,7 +446,7 @@ describe('LogListControls', () => {
|
||||||
await userEvent.click(screen.getByLabelText(DOWNLOAD_LOGS_LABEL_COPY));
|
await userEvent.click(screen.getByLabelText(DOWNLOAD_LOGS_LABEL_COPY));
|
||||||
await userEvent.click(await screen.findByText(label));
|
await userEvent.click(await screen.findByText(label));
|
||||||
expect(downloadLogs).toHaveBeenCalledTimes(1);
|
expect(downloadLogs).toHaveBeenCalledTimes(1);
|
||||||
expect(downloadLogs).toHaveBeenCalledWith(format, [], undefined);
|
expect(downloadLogs).toHaveBeenCalledWith(format, [], undefined, []);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Allows to download logs filtered logs', async () => {
|
test('Allows to download logs filtered logs', async () => {
|
||||||
|
@ -463,7 +463,7 @@ describe('LogListControls', () => {
|
||||||
);
|
);
|
||||||
await userEvent.click(screen.getByLabelText(DOWNLOAD_LOGS_LABEL_COPY));
|
await userEvent.click(screen.getByLabelText(DOWNLOAD_LOGS_LABEL_COPY));
|
||||||
await userEvent.click(await screen.findByText('txt'));
|
await userEvent.click(await screen.findByText('txt'));
|
||||||
expect(downloadLogs).toHaveBeenCalledWith('text', filteredLogs, undefined);
|
expect(downloadLogs).toHaveBeenCalledWith('text', filteredLogs, undefined, []);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Controls new lines', async () => {
|
test('Controls new lines', async () => {
|
||||||
|
|
Loading…
Reference in New Issue