diff --git a/cypress/component/AllServicesPage/AllServicesPage.cy.tsx b/cypress/component/AllServicesPage/AllServicesPage.cy.tsx index 850feba23..3f27c4a56 100644 --- a/cypress/component/AllServicesPage/AllServicesPage.cy.tsx +++ b/cypress/component/AllServicesPage/AllServicesPage.cy.tsx @@ -26,9 +26,7 @@ describe('', () => { status: 200, fixture: 'settings-navigation.json', }); - // cy.intercept('http://localhost:8080/api/chrome-service/v1/static/stable/stage/navigation/*-navigation.json?ts=*', { - // data: [], - // }); + cy.intercept('http://localhost:8080/api/chrome-service/v1/static/stable/stage/search/search-index.json', []); }); it('should filter by service category title', () => { diff --git a/cypress/component/DefaultLayout.cy.js b/cypress/component/DefaultLayout.cy.js index f992f9413..dcd0572a9 100644 --- a/cypress/component/DefaultLayout.cy.js +++ b/cypress/component/DefaultLayout.cy.js @@ -106,6 +106,7 @@ describe('', () => { navItems: [], }); cy.intercept('GET', '/api/chrome-service/v1/static/stable/stage/services/services-generated.json', []); + cy.intercept('GET', '/api/chrome-service/v1/static/stable/stage/search/search-index.json', []); }); it('render correctly with few nav items', () => { diff --git a/cypress/component/helptopics/HelpTopicManager.cy.tsx b/cypress/component/helptopics/HelpTopicManager.cy.tsx index ae4c97b91..4816feb19 100644 --- a/cypress/component/helptopics/HelpTopicManager.cy.tsx +++ b/cypress/component/helptopics/HelpTopicManager.cy.tsx @@ -166,6 +166,7 @@ describe('HelpTopicManager', () => { navItems: [], }); cy.intercept('GET', '/api/chrome-service/v1/static/stable/stage/services/services-generated.json', []); + cy.intercept('http://localhost:8080/api/chrome-service/v1/static/stable/stage/search/search-index.json', []); }); it.only('should switch help topics drawer content', () => { diff --git a/src/components/RootApp/ScalprumRoot.test.js b/src/components/RootApp/ScalprumRoot.test.js index 19f68e48f..4f3aaa72c 100644 --- a/src/components/RootApp/ScalprumRoot.test.js +++ b/src/components/RootApp/ScalprumRoot.test.js @@ -6,6 +6,10 @@ import configureStore from 'redux-mock-store'; import { Provider } from 'react-redux'; import { Provider as JotaiProvider } from 'jotai'; +jest.mock('../Search/SearchInput', () => { + return jest.fn().mockImplementation(() =>
); +}); + jest.mock('../../utils/common', () => { const utils = jest.requireActual('../../utils/common'); return {