From cf2de9c8b83e77fca2335d4d39eb512ed57782a0 Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Mon, 30 Mar 2026 11:56:42 +0100 Subject: [PATCH] Update Toast.stories.tsx Signed-off-by: Charles de Dreuille --- .../src/components/Toast/Toast.stories.tsx | 107 ------------------ 1 file changed, 107 deletions(-) diff --git a/plugins/app/src/components/Toast/Toast.stories.tsx b/plugins/app/src/components/Toast/Toast.stories.tsx index 6cd895a5f8..482bd0e5d8 100644 --- a/plugins/app/src/components/Toast/Toast.stories.tsx +++ b/plugins/app/src/components/Toast/Toast.stories.tsx @@ -558,111 +558,4 @@ export const AlertApiIntegration = meta.story({ }, }); -/** - * This story tests the real AlertApi integration. - * It uses the alertApi from the TestApiProvider (set up in storybook preview) - * and shows how alerts posted via alertApi.post() appear. - * - * Note: The storybook preview.tsx renders AlertDisplay from core-components, - * which still uses Material UI. To test the new ToastDisplay, run the actual - * Backstage app where the app plugin's elements.tsx is used. - */ -function RealAlertApiStory() { - const alertApi = useApi(alertApiRef); - - return ( - - - - Real AlertApi Test - - - These buttons call alertApi.post() directly. Alerts appear in the OLD - AlertDisplay (top of screen) because Storybook uses core-components. - - - To test the NEW ToastDisplay, run: yarn start - - - - - - - - - - - - - - ); -} - -export const RealAlertApi = meta.story({ - name: 'Real AlertApi Test', - render: () => , -}); - export default meta;