Skip to content

Commit

Permalink
Add PluginsProvider to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
obgibson committed Jul 11, 2023
1 parent b2594ca commit 6c61e76
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/AppBar/__tests__/AppBar.test.cypress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ import { BrowserRouter as Router, Route } from 'react-router-dom';
import { QueryParamProvider } from 'use-query-params';
import theme from '../../../theme';
import AppBar from '..';
import { PluginsProvider } from '../../Plugins/PluginManager';

describe('AppBar test', () => {
it('AppBar basic', () => {
cy.viewport(1000, 600);
mount(
<ThemeProvider theme={theme}>
<Router>
<QueryParamProvider ReactRouterRoute={Route}>
<AppBar />
</QueryParamProvider>
</Router>
<PluginsProvider>
<Router>
<QueryParamProvider ReactRouterRoute={Route}>
<AppBar />
</QueryParamProvider>
</Router>
</PluginsProvider>
</ThemeProvider>,
);
// test all of the AppBars child components render
Expand Down

0 comments on commit 6c61e76

Please sign in to comment.