From 71a4b083eb6e08f88c8ed74b97232e92b2bf5010 Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Wed, 16 Oct 2024 16:11:37 +0200 Subject: [PATCH] Improve aria labels using test provider name property --- code/addons/test/src/manager.tsx | 1 + code/core/src/manager/components/sidebar/TestingModule.tsx | 6 +++--- code/core/src/types/modules/addons.ts | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/code/addons/test/src/manager.tsx b/code/addons/test/src/manager.tsx index e8e90eebbfba..f012edb5e6b7 100644 --- a/code/addons/test/src/manager.tsx +++ b/code/addons/test/src/manager.tsx @@ -85,6 +85,7 @@ addons.register(ADDON_ID, (api) => { runnable: true, watchable: true, + name: 'Component tests', title: ({ crashed }) => (crashed ? "Component tests didn't complete" : 'Component tests'), description: ({ failed, running, watching, progress, crashed, details }) => { const [isModalOpen, setIsModalOpen] = useState(false); diff --git a/code/core/src/manager/components/sidebar/TestingModule.tsx b/code/core/src/manager/components/sidebar/TestingModule.tsx index 0b1499b785e3..f57eea163455 100644 --- a/code/core/src/manager/components/sidebar/TestingModule.tsx +++ b/code/core/src/manager/components/sidebar/TestingModule.tsx @@ -241,7 +241,7 @@ export const TestingModule = ({ {state.watchable && ( ) : (