From e9523db5674a18c740b11db4e6a9292b6b05af0a Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Thu, 17 Oct 2024 10:41:25 +0200 Subject: [PATCH] Only start tests for test providers that are ready to run --- code/core/src/manager/components/sidebar/TestingModule.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/core/src/manager/components/sidebar/TestingModule.tsx b/code/core/src/manager/components/sidebar/TestingModule.tsx index 70c53da19b35..4a0f0513bc85 100644 --- a/code/core/src/manager/components/sidebar/TestingModule.tsx +++ b/code/core/src/manager/components/sidebar/TestingModule.tsx @@ -289,7 +289,9 @@ export const TestingModule = ({ padding="small" onClick={(e: SyntheticEvent) => { e.stopPropagation(); - testProviders.forEach(({ id }) => onRunTests(id)); + testProviders + .filter((state) => !state.crashed && !state.running && state.runnable) + .forEach(({ id }) => onRunTests(id)); }} disabled={running} >