 
         checkChildrenComponents(element.refs.plan, item, checks)
 
-        PlanPublishStore.emit("progress.#{plan.id}.#{succeededProgress.status}", succeededProgress)
-
         checksIsPublished =
           display: (components, {display}) ->
             displayNode = components.displayComponent.getDOMNode()
             expect(displayNode.classList.contains('is-published')).to.be.true
 
-        checkChildrenComponents(element.refs.plan, item, checksIsPublished)
+        checker = _.partial(checkChildrenComponents, element.refs.plan, item, checksIsPublished)
+
+        PlanPublishStore.on("progress.#{plan.id}.*", checker)
+        fakePublished(plan)
 
   it 'should show as publishing when re-publishing', ->
     item = _.clone(ITEM_PUBLISHED_THREE_DAYS)

    item = _.clone(ITEM_DRAFT_ONE_DAY)
    item.plan = fakePublishing(item.plan)

    succeededProgress =
      for: item.plan.id
      id: JOB_UUID
      status: 'succeeded'

    Testing
      .renderComponent( ContainedPlan, props: {courseId: PLAN_COURSE_ID, item: ITEM_PUBLISHED_THREE_DAYS} )
      .then ({dom, element}) ->


{TimeActions, TimeStore} = require '../../../src/flux/time'
{PlanPublishStore, PlanPublishActions} = require '../../../src/flux/plan-publish'
{JobStore, JobActions} = require '../../../src/flux/job'

Plan = require '../../../src/components/course-calendar/plan'

