Logo
Explore Help
Sign In
IntenseWebs/grafana
3
0
Fork 0
You've already forked grafana
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
Code Issues Packages Projects Releases Wiki Activity
Files
8ef5212b0e2208d519ddd778bec1cd420e551a4a
grafana/public/app/features/explore/spec/helper/assert.ts

8 lines
278 B
TypeScript
Raw Normal View History

Explore: Integration test for running a query and saving it in query history (#45728) * Create basic query history test * Clean up * Clean up * Use run button selector * Mock AutoSizer instead of monkey-patching * Reset local storage after each test * Add accessible name to Run Query button and use it in the test * Update public/app/features/explore/spec/helper/interactions.ts Co-authored-by: Giordano Ricci <me@giordanoricci.com> * Rename query to urlParams * Fix linting errors * Remove unused import Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2022-02-23 19:05:38 +01:00
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);
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 80ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API