Skip to content

Commit

Permalink
test(Playwright): added beforeMont for providers (#1419)
Browse files Browse the repository at this point in the history
  • Loading branch information
NasgulNexus authored Mar 12, 2024
1 parent 67c0568 commit 309320c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions playwright/playwright/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
import React from 'react';

import {beforeMount} from '@playwright/experimental-ct-react/hooks';

import {MobileProvider} from '../../src/components/mobile/MobileProvider';
import {ThemeProvider} from '../../src/components/theme/ThemeProvider';

import './index.scss';

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

0 comments on commit 309320c

Please sign in to comment.