File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ import { ThemeProvider } from '@ui5/webcomponents-react';
2020import { mount } from 'cypress/react' ;
2121// Import commands.js using ES2015 syntax:
2222import './commands' ;
23-
23+ import { FrontendConfigProvider } from '../../src/context/FrontendConfigContext' ;
24+ import { AuthProviderOnboarding } from '../../src/context/AuthProviderOnboarding' ;
2425
2526// Augment the Cypress namespace to include type definitions for
2627// your custom command.
@@ -36,8 +37,13 @@ declare global {
3637}
3738
3839
39-
4040Cypress . Commands . add ( 'mount' , ( component , options ) => {
41- return mount ( < ThemeProvider > { component } </ ThemeProvider > , options ) ;
41+ return mount ( < ThemeProvider >
42+ < FrontendConfigProvider >
43+ < AuthProviderOnboarding >
44+ { component }
45+ </ AuthProviderOnboarding >
46+ </ FrontendConfigProvider >
47+ </ ThemeProvider > , options ) ;
4248} ) ;
4349
You can’t perform that action at this time.
0 commit comments