From 40ab03c38d08b4df094e4d5463536e80e6c486cb Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Wed, 4 Nov 2020 16:46:18 +0100 Subject: [PATCH] Fix cucumber tests for table results [SCI-5047] --- app/assets/javascripts/my_modules/results.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/my_modules/results.js b/app/assets/javascripts/my_modules/results.js index 0483d0a49..05973eb8d 100644 --- a/app/assets/javascripts/my_modules/results.js +++ b/app/assets/javascripts/my_modules/results.js @@ -149,6 +149,9 @@ handleResultFileSubmit($form, ev); break; case ResultTypeEnum.TABLE: + $form + .find(`.${GLOBAL_CONSTANTS.HAS_UNSAVED_DATA_CLASS_NAME}`) + .removeClass(GLOBAL_CONSTANTS.HAS_UNSAVED_DATA_CLASS_NAME); break; case ResultTypeEnum.TEXT: textValidator(