@@ -37,7 +37,7 @@ const step2 = buildWorkflowStep(
3737// build the items
3838// give them an id so we know what id to request in the tests
3939const item1 = buildWorkItem (
40- { jobID : targetJob . jobID , workflowStepIndex : 1 , serviceID : step1ServiceId , status : WorkItemStatus . RUNNING , id : 1 } ,
40+ { jobID : targetJob . jobID , workflowStepIndex : 1 , serviceID : step1ServiceId , status : WorkItemStatus . RUNNING , id : 1 , message_category : 'smoothly' } ,
4141) ;
4242const item2 = buildWorkItem (
4343 { jobID : targetJob . jobID , workflowStepIndex : 1 , serviceID : step1ServiceId , status : WorkItemStatus . SUCCESSFUL , id : 2 } ,
@@ -190,6 +190,10 @@ describe('Workflow UI work items table row route', function () {
190190 const listing = this . res . text ;
191191 expect ( ( listing . match ( / r e t r y - b u t t o n / g) || [ ] ) . length ) . to . equal ( 1 ) ;
192192 } ) ;
193+ it ( 'returns the message_category along with the main status' , async function ( ) {
194+ const listing = this . res . text ;
195+ expect ( listing ) . to . contain ( `<span class="badge rounded-pill bg-info">${ WorkItemStatus . RUNNING . valueOf ( ) } : smoothly</span>` ) ;
196+ } ) ;
193197 } ) ;
194198
195199 describe ( 'who requests a queued work item for their job' , function ( ) {
@@ -288,7 +292,7 @@ describe('Workflow UI work items table row route', function () {
288292 expect ( listing ) . to . not . contain ( `<span class="badge rounded-pill bg-success">${ WorkItemStatus . SUCCESSFUL . valueOf ( ) } </span>` ) ;
289293 expect ( listing ) . to . not . contain ( `<span class="badge rounded-pill bg-secondary">${ WorkItemStatus . CANCELED . valueOf ( ) } </span>` ) ;
290294 expect ( listing ) . to . not . contain ( `<span class="badge rounded-pill bg-primary">${ WorkItemStatus . READY . valueOf ( ) } </span>` ) ;
291- expect ( listing ) . to . contain ( `<span class="badge rounded-pill bg-info">${ WorkItemStatus . RUNNING . valueOf ( ) } </span>` ) ;
295+ expect ( listing ) . to . contain ( `<span class="badge rounded-pill bg-info">${ WorkItemStatus . RUNNING . valueOf ( ) } : smoothly </span>` ) ;
292296 } ) ;
293297 } ) ;
294298 } ) ;
0 commit comments