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 { ...@@ -218,7 +218,7 @@ export default {
/> />
</div> </div>
<callout v-if="shouldRenderCalloutMessage" :message="job.callout_message" /> <callout v-if="shouldRenderCalloutMessage && !hasUnmetPrerequisitesFailure" :message="job.callout_message" />
</header> </header>
<!-- EO Header Section --> <!-- EO Header Section -->
......
...@@ -7,9 +7,7 @@ export const hasUnmetPrerequisitesFailure = state => ...@@ -7,9 +7,7 @@ export const hasUnmetPrerequisitesFailure = state =>
state.job && state.job.failure_reason && state.job.failure_reason === 'unmet_prerequisites'; state.job && state.job.failure_reason && state.job.failure_reason === 'unmet_prerequisites';
export const shouldRenderCalloutMessage = state => export const shouldRenderCalloutMessage = state =>
!_.isEmpty(state.job.status) && !_.isEmpty(state.job.status) && !_.isEmpty(state.job.callout_message);
!_.isEmpty(state.job.callout_message) &&
!hasUnmetPrerequisitesFailure;
/** /**
* When job has not started the key will be null * When job has not started the key will be null
......
...@@ -272,8 +272,8 @@ describe('Job App ', () => { ...@@ -272,8 +272,8 @@ describe('Job App ', () => {
title: 'Failed to create resources', title: 'Failed to create resources',
}, },
}, },
failure_reason: 'unmet_prerequisites',
has_trace: false, has_trace: false,
unmet_prerequisites: true,
runners: { runners: {
available: true, 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