mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
8 lines
278 B
TypeScript
8 lines
278 B
TypeScript
|
|
import { screen } from '@testing-library/react';
|
||
|
|
|
||
|
|
export const assertQueryHistoryExists = (query: string) => {
|
||
|
|
expect(screen.getByText('1 queries')).toBeInTheDocument();
|
||
|
|
const queryItem = screen.getByLabelText('Query text');
|
||
|
|
expect(queryItem).toHaveTextContent(query);
|
||
|
|
};
|