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>
This commit is contained in:
Piotr Jamróz
2022-02-23 19:05:38 +01:00
committed by GitHub
co-authored by Giordano Ricci
parent f75bea481d
commit 5715be4afa
8 changed files with 294 additions and 190 deletions
@@ -69,6 +69,7 @@ export class RefreshPicker extends PureComponent<Props> {
return (
<ButtonGroup className="refresh-picker">
<ToolbarButton
aria-label={text}
tooltip={tooltip}
onClick={onRefresh}
variant={variant}