Skip to content

Commit df156b2

Browse files
committed
Fixing tests
1 parent 5c78d08 commit df156b2

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

graylog2-web-interface/src/components/navigation/MainNavbar.test.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -207,16 +207,6 @@ describe('MainNavbar', () => {
207207
await screen.findByRole('menuitem', { name: /Merged item for general perspective/i });
208208
});
209209

210-
it('should not merge navigation dropdowns when their assigned perspective varies', async () => {
211-
render(<SUT />);
212-
213-
userEvent.click(await screen.findByRole('button', { name: /Merged dropdown test/i }));
214-
215-
await screen.findByRole('menuitem', { name: /Menu item for general perspective/i });
216-
217-
expect(screen.queryByRole('menuitem', { name: /Menu item for specific perspective/i })).not.toBeInTheDocument();
218-
});
219-
220210
describe('uses correct position', () => {
221211
it('should render an item after a specified item', async () => {
222212
render(<SUT />);

graylog2-web-interface/src/routing/AppRouter.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ const mockRoutes = (routes: PluginExports['routes']) => {
8686
describe('AppRouter', () => {
8787
beforeEach(() => {
8888
AppConfig.isFeatureEnabled = jest.fn(() => false);
89+
asMock(usePluginEntities).mockReturnValue([]);
8990
asMock(createBrowserRouter).mockImplementation((routes: RouteObject[]) => createMemoryRouter(routes));
9091
});
9192

0 commit comments

Comments
 (0)