[SI-2948] - hide EditCondensation if condensation grid failure exists AND they are completed; correct test

Signed-off-by: dtheinert <dietmar.theinert@pta.de>
diff --git a/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-list/grid-failure-list.component.ts b/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-list/grid-failure-list.component.ts
index 58aa675..2270df1 100644
--- a/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-list/grid-failure-list.component.ts
+++ b/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-list/grid-failure-list.component.ts
@@ -276,12 +276,12 @@
           this._router.navigate(['/grid-failures', event.data.id]);
           break;
         case this._eventTypeEnum.InitialLoad:
+          this._changeMode();
           const condensedGridFailure = this.sandbox.overviewGridFailureList.find(gridFailure => gridFailure.id === this.sandbox.condenseId);
           this.showEditCondensationBtn = !(
             !!condensedGridFailure &&
             (condensedGridFailure.statusIntern === StateEnum.COMPLETED || condensedGridFailure.statusIntern === StateEnum.CANCELED)
           );
-          this._changeMode();
           break;
         default:
           break;