From 4eba200866e207aca11ddcd9dd7ca5710bf779c5 Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Fri, 25 Oct 2024 21:16:09 +0200 Subject: [PATCH 1/2] Show checkmark icon in story status dropdown --- code/core/src/manager/components/sidebar/Tree.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/core/src/manager/components/sidebar/Tree.tsx b/code/core/src/manager/components/sidebar/Tree.tsx index 2cb99d61cdc..49110a95a72 100644 --- a/code/core/src/manager/components/sidebar/Tree.tsx +++ b/code/core/src/manager/components/sidebar/Tree.tsx @@ -7,6 +7,7 @@ import { CollapseIcon as CollapseIconSvg, ExpandAltIcon, StatusFailIcon, + StatusPassIcon, StatusWarnIcon, SyncIcon, } from '@storybook/icons'; @@ -224,7 +225,7 @@ const Node = React.memo(function Node({ description: value.description, 'aria-label': `Test status for ${value.title}: ${value.status}`, icon: { - success: null, // We don't show a checkmark, to avoid clutter + success: , error: , warn: , pending: , From 8b08b4e10c0d580271494fbd000acdde9e35f78d Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Fri, 25 Oct 2024 21:20:03 +0200 Subject: [PATCH 2/2] Update story status label for consistency --- code/addons/test/src/manager.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/addons/test/src/manager.tsx b/code/addons/test/src/manager.tsx index 50c2180fa18..aeb71ab4aaa 100644 --- a/code/addons/test/src/manager.tsx +++ b/code/addons/test/src/manager.tsx @@ -152,7 +152,7 @@ addons.register(ADDON_ID, (api) => { .map(({ storyId, status, testRunId, ...rest }) => { if (storyId) { const statusObject: API_StatusObject = { - title: 'Vitest', + title: 'Component tests', status: statusMap[status], description: 'failureMessages' in rest && rest.failureMessages?.length