From bab1e36871ca2143b2d904b9bb225edadbffadbe Mon Sep 17 00:00:00 2001 From: Mark Goodrich Date: Fri, 7 Apr 2023 16:27:38 -0400 Subject: [PATCH] UHM-4934: Create "circular workflow" for adding Lab Orders from the Lab Workflow module fix test issues --- app/js/components/Draft.jsx | 6 +++++- tests/components/__snapshots__/Draft.test.jsx.snap | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/js/components/Draft.jsx b/app/js/components/Draft.jsx index 2f246986..1ef76d0e 100644 --- a/app/js/components/Draft.jsx +++ b/app/js/components/Draft.jsx @@ -158,9 +158,13 @@ Draft.propTypes = { handleSubmit: PropTypes.func.isRequired, handleDraftDiscard: PropTypes.func.isRequired, toggleDraftLabOrderUrgency: PropTypes.func.isRequired, - showAddResultsButton: PropTypes.bool + showAddResultsButton: PropTypes.bool, }; +Draft.defaultProps = { + showAddResultsButton: false, +} + const mapStateToProps = state => ({ isLoading: state.createOrderReducer.status.loading, }); diff --git a/tests/components/__snapshots__/Draft.test.jsx.snap b/tests/components/__snapshots__/Draft.test.jsx.snap index b748f28f..434ee76e 100644 --- a/tests/components/__snapshots__/Draft.test.jsx.snap +++ b/tests/components/__snapshots__/Draft.test.jsx.snap @@ -63,6 +63,7 @@ exports[`Component: Draft should render on initial setup 1`] = ` } } locale="en" + showAddResultsButton={false} toggleDraftLabOrderUrgency={[MockFunction]} >