mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Explore: Change service in hook, un-skip test (#85894)
Use different service, un-skip test
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { getDataSourceSrv } from '@grafana/runtime';
|
||||
import { Branding } from 'app/core/components/Branding/Branding';
|
||||
import { useGrafana } from 'app/core/context/GrafanaContext';
|
||||
import { useNavModel } from 'app/core/hooks/useNavModel';
|
||||
import { getDatasourceSrv } from 'app/features/plugins/datasource_srv';
|
||||
import { ExploreQueryParams } from 'app/types';
|
||||
|
||||
import { isFulfilled, hasKey } from './utils';
|
||||
@@ -40,7 +40,7 @@ export function useExplorePageTitle(params: ExploreQueryParams) {
|
||||
return Promise.reject();
|
||||
}
|
||||
|
||||
return getDatasourceSrv().get(pane.datasource);
|
||||
return getDataSourceSrv().get(pane.datasource);
|
||||
})
|
||||
)
|
||||
.then((results) => results.filter(isFulfilled).map((result) => result.value))
|
||||
|
||||
@@ -119,7 +119,7 @@ describe('Explore: Query History', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it.skip('adds recently added query if the query history panel is already open', async () => {
|
||||
it('adds recently added query if the query history panel is already open', async () => {
|
||||
const urlParams = {
|
||||
left: serializeStateToUrlParam({
|
||||
datasource: 'loki',
|
||||
|
||||
Reference in New Issue
Block a user