From 033e1fcc6e2b716b7340754b77c4ce89ac1bb837 Mon Sep 17 00:00:00 2001 From: Max Chopart Date: Thu, 14 Dec 2023 15:31:49 +0100 Subject: [PATCH] [Fix #18] Fix tests --- js/components/record/Record.js | 60 +++++++++++------------ tests/__tests__/components/Record.spec.js | 2 + 2 files changed, 32 insertions(+), 30 deletions(-) diff --git a/js/components/record/Record.js b/js/components/record/Record.js index 63856316..ee0ea389 100644 --- a/js/components/record/Record.js +++ b/js/components/record/Record.js @@ -57,25 +57,25 @@ class Record extends React.Component { } return
-
- - {this._showInstitution() && this._renderInstitution()} - - - {this._renderForm()} - {this._renderButtons()} - {showAlert && recordSaved.status === ACTION_STATUS.ERROR && +
+ + {this._showInstitution() && this._renderInstitution()} + + + {this._renderForm()} + {this._renderButtons()} + {showAlert && recordSaved.status === ACTION_STATUS.ERROR &&

} - {showAlert && recordSaved.status === ACTION_STATUS.SUCCESS && + {showAlert && recordSaved.status === ACTION_STATUS.SUCCESS &&

} -
; + ; } _renderHeader() { @@ -106,23 +106,23 @@ class Record extends React.Component { const {record, recordSaved, formgen} = this.props; return
- - - + {record.phase === RECORD_PHASE.COMPLETED + || EXTENSIONS === EXTENSION_CONSTANTS.OPERATOR + && } + + {record.phase === RECORD_PHASE.COMPLETED + || record.phase === RECORD_PHASE.PUBLISHED + && }