From 63304de0e25b91d2bd15f5a71fd864cb07083ddc Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Fri, 6 Dec 2024 10:22:50 +0100 Subject: [PATCH] Clear progress when starting new test run --- .../src/manager-api/modules/experimental_testmodule.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/core/src/manager-api/modules/experimental_testmodule.ts b/code/core/src/manager-api/modules/experimental_testmodule.ts index 294355c73bc6..4058333a3b10 100644 --- a/code/core/src/manager-api/modules/experimental_testmodule.ts +++ b/code/core/src/manager-api/modules/experimental_testmodule.ts @@ -70,7 +70,7 @@ export const init: ModuleFn = ({ store, fullAPI }) => { clearTestProviderState(id) { const update = { cancelling: false, - running: true, + running: false, failed: false, crashed: false, progress: undefined, @@ -85,7 +85,13 @@ 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, failed: false, crashed: false }); + + api.updateTestProviderState(id, { + running: true, + failed: false, + crashed: false, + progress: undefined, + }); const provider = store.getState().testProviders[id];