Skip to content

Commit 2694289

Browse files
committed
Update component.tsx
1 parent 26aef46 commit 2694289

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

cypress/support/component.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ import { ThemeProvider } from '@ui5/webcomponents-react';
2020
import { mount } from 'cypress/react';
2121
// Import commands.js using ES2015 syntax:
2222
import './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-
4040
Cypress.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

0 commit comments

Comments
 (0)