From d3fbdb2aea92f1ea51103f8c4929517e31f052d3 Mon Sep 17 00:00:00 2001 From: Marija Najdova Date: Wed, 14 Jul 2021 16:04:42 +0200 Subject: [PATCH] [test] Remove StyledEngineProvider usage from regressions and e2e tests (#27258) [test] Remove StyledEngineProvider usage from regressions and e2e tests (#27258) --- test/e2e/TestViewer.js | 10 +++------- test/regressions/TestViewer.js | 6 ++---- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/test/e2e/TestViewer.js b/test/e2e/TestViewer.js index 64addc7fe6724a..7b9db57d1b49fe 100644 --- a/test/e2e/TestViewer.js +++ b/test/e2e/TestViewer.js @@ -1,6 +1,5 @@ import * as React from 'react'; import PropTypes from 'prop-types'; -import { StyledEngineProvider } from '@material-ui/core/styles'; function TestViewer(props) { const { children } = props; @@ -14,12 +13,9 @@ function TestViewer(props) { }, []); return ( - // TODO v5: remove once migration to emotion is completed - -
- {children} -
-
+
+ {children} +
); } diff --git a/test/regressions/TestViewer.js b/test/regressions/TestViewer.js index 8ab4c15a58252c..99646e4baf85a2 100644 --- a/test/regressions/TestViewer.js +++ b/test/regressions/TestViewer.js @@ -3,7 +3,6 @@ import PropTypes from 'prop-types'; import { useFakeTimers } from 'sinon'; import Box from '@material-ui/core/Box'; import GlobalStyles from '@material-ui/core/GlobalStyles'; -import { StyledEngineProvider } from '@material-ui/core/styles'; function TestViewer(props) { const { children } = props; @@ -47,8 +46,7 @@ function TestViewer(props) { }, []); return ( - // TODO v5: remove once migration to emotion is completed - + {children} - + ); }