From 8f9d177bad93e9bd052278f4659a4e8398bfc700 Mon Sep 17 00:00:00 2001 From: Egor Mostovoy Date: Wed, 13 Mar 2024 11:31:35 +0100 Subject: [PATCH] test(Playwright): add before mount theme and mobile provider (#857) --- playwright/playwright/index.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/playwright/playwright/index.tsx b/playwright/playwright/index.tsx index 1cac7e95b..7de998378 100644 --- a/playwright/playwright/index.tsx +++ b/playwright/playwright/index.tsx @@ -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 ( + + + + + + ); +});