e2e-test: preserve next-app styles in React 17 bootstrap

Keep the generated app stylesheet import when rewriting the new frontend app entrypoint for React 17 so the E2E app boots with the same UI setup.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-17 11:30:34 +01:00
parent 2dce1f23eb
commit d0a2b0b7dc
@@ -436,6 +436,7 @@ async function switchToReact17(appDir: string) {
`import '@backstage/cli/asset-types';
import ReactDOM from 'react-dom';
import App from './App';
import '@backstage/ui/css/styles.css';
ReactDOM.render(App.createRoot(), document.getElementById('root'));
`,