From d0a2b0b7dca32cdeca8a8d9bbd3ce249fe6c6d69 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 17 Mar 2026 11:30:34 +0100 Subject: [PATCH] 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 Made-with: Cursor --- packages/e2e-test/src/commands/runCommand.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/e2e-test/src/commands/runCommand.ts b/packages/e2e-test/src/commands/runCommand.ts index 14cc2f8320..40aa8a75bd 100644 --- a/packages/e2e-test/src/commands/runCommand.ts +++ b/packages/e2e-test/src/commands/runCommand.ts @@ -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')); `,