Commit 506a0ee6 authored by jerasmus's avatar jerasmus Committed by Tiger

Fix frontend unit tests

Fixed the broken frontend unit tests
parent 11f2ddf0
......@@ -218,7 +218,7 @@ export default {
/>
</div>
<callout v-if="shouldRenderCalloutMessage" :message="job.callout_message" />
<callout v-if="shouldRenderCalloutMessage && !hasUnmetPrerequisitesFailure" :message="job.callout_message" />
</header>
<!-- EO Header Section -->
......
......@@ -7,9 +7,7 @@ export const hasUnmetPrerequisitesFailure = state =>
state.job && state.job.failure_reason && state.job.failure_reason === 'unmet_prerequisites';
export const shouldRenderCalloutMessage = state =>
!_.isEmpty(state.job.status) &&
!_.isEmpty(state.job.callout_message) &&
!hasUnmetPrerequisitesFailure;
!_.isEmpty(state.job.status) && !_.isEmpty(state.job.callout_message);
/**
* When job has not started the key will be null
......
......@@ -272,8 +272,8 @@ describe('Job App ', () => {
title: 'Failed to create resources',
},
},
failure_reason: 'unmet_prerequisites',
has_trace: false,
unmet_prerequisites: true,
runners: {
available: true,
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment