Explore: Work on unskipping test (#86370)

* test unskip

* Mock getDataSourceSrv seperately

* mock the hook instead

* Remove TODO
This commit is contained in:
Kristina 2024-04-17 08:17:51 -05:00 committed by GitHub
parent f9af4675ad
commit 2338cad563
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,6 +68,10 @@ jest.mock('app/core/services/PreferencesService', () => ({
},
}));
jest.mock('../hooks/useExplorePageTitle', () => ({
useExplorePageTitle: jest.fn(),
}));
jest.mock('react-virtualized-auto-sizer', () => {
return {
__esModule: true,
@ -119,8 +123,7 @@ describe('Explore: Query History', () => {
});
});
// TODO: #86287
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',