Skip to content

Commit

Permalink
test: playwright add toaster provider (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
NasgulNexus authored Aug 27, 2024
1 parent befb814 commit c94e0a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions playwright/playwright/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import React from 'react';

import {beforeMount} from '@playwright/experimental-ct-react/hooks';
import {MobileProvider, ThemeProvider} from '@gravity-ui/uikit';
import {MobileProvider, ThemeProvider, ToasterComponent, ToasterProvider} from '@gravity-ui/uikit';

import './index.scss';

beforeMount(async ({App}) => {
return (
<ThemeProvider>
<MobileProvider>
<App />
<ToasterProvider>
<App />
<ToasterComponent />
</ToasterProvider>
</MobileProvider>
</ThemeProvider>
);
Expand Down

0 comments on commit c94e0a5

Please sign in to comment.