diff --git a/code/addons/test/src/components/TestProviderRender.tsx b/code/addons/test/src/components/TestProviderRender.tsx
index dd765c3e2d5b..16197a7c7ced 100644
--- a/code/addons/test/src/components/TestProviderRender.tsx
+++ b/code/addons/test/src/components/TestProviderRender.tsx
@@ -129,7 +129,7 @@ export const TestProviderRender: FC<
padding="small"
active={state.watching}
onClick={() => api.setTestProviderWatchMode(state.id, !state.watching)}
- disabled={state.crashed || state.running || isEditing}
+ disabled={state.running || isEditing}
>
@@ -152,7 +152,7 @@ export const TestProviderRender: FC<
variant="ghost"
padding="small"
onClick={() => api.runTestProvider(state.id, { entryId })}
- disabled={state.crashed || state.running || isEditing}
+ disabled={state.running || isEditing}
>
diff --git a/code/core/src/manager-api/modules/experimental_testmodule.ts b/code/core/src/manager-api/modules/experimental_testmodule.ts
index 9b2b1fb1dcfb..294355c73bc6 100644
--- a/code/core/src/manager-api/modules/experimental_testmodule.ts
+++ b/code/core/src/manager-api/modules/experimental_testmodule.ts
@@ -85,7 +85,7 @@ export const init: ModuleFn = ({ store, fullAPI }) => {
runTestProvider(id, options) {
const index = store.getState().index;
invariant(index, 'The index is currently unavailable');
- api.updateTestProviderState(id, { running: true });
+ api.updateTestProviderState(id, { running: true, failed: false, crashed: false });
const provider = store.getState().testProviders[id];
@@ -152,6 +152,7 @@ export const init: ModuleFn = ({ store, fullAPI }) => {
...config,
...initialTestProviderState,
...(state?.testProviders?.[id] || {}),
+ running: false,
} as TestProviders[0],
]
)
diff --git a/code/core/src/manager/components/sidebar/TestingModule.tsx b/code/core/src/manager/components/sidebar/TestingModule.tsx
index b7d5536ce203..b66512007c08 100644
--- a/code/core/src/manager/components/sidebar/TestingModule.tsx
+++ b/code/core/src/manager/components/sidebar/TestingModule.tsx
@@ -263,7 +263,7 @@ export const TestingModule = ({
onClick={(e: SyntheticEvent) => {
e.stopPropagation();
testProviders
- .filter((state) => !state.crashed && !state.running && state.runnable)
+ .filter((state) => !state.running && state.runnable)
.forEach(({ id }) => api.runTestProvider(id));
}}
disabled={isRunning}
diff --git a/code/core/src/types/modules/addons.ts b/code/core/src/types/modules/addons.ts
index 66e4a7edce33..47f5aec6412b 100644
--- a/code/core/src/types/modules/addons.ts
+++ b/code/core/src/types/modules/addons.ts
@@ -1,7 +1,6 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { FC, PropsWithChildren, ReactElement, ReactNode } from 'react';
-import type { ListItem } from '../../components';
import type { TestProviderConfig, TestingModuleProgressReportProgress } from '../../core-events';
import type { RenderData as RouterData } from '../../router/types';
import type { ThemeVars } from '../../theming/types';