Skip to content

Commit

Permalink
test(Playwright): add before mount theme and mobile provider (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
NasgulNexus authored Mar 13, 2024
1 parent c72b770 commit 8f9d177
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion playwright/playwright/index.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
// Import styles, initialize component theme here.
import {MobileProvider, ThemeProvider} from '@gravity-ui/uikit';
import {beforeMount} from '@playwright/experimental-ct-react/hooks';
import React from 'react';

import './index.scss';

beforeMount(async ({App}) => {
return (
<ThemeProvider theme="light">
<MobileProvider>
<App />
</MobileProvider>
</ThemeProvider>
);
});

0 comments on commit 8f9d177

Please sign in to comment.