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;