 describe 'Concept Coach', ->
   beforeEach ->
     CourseObj = _.extend {}, _.pick(BaseModel.course, 'name', 'teachers'), {is_concept_coach: true}
+    BaseModel.course.periods = PeriodHelper.sort(BaseModel.course?.periods)
+
     BaseModel.course.periods[BLANK_PERIOD].chapters = []
     CCDashboardActions.loaded(BaseModel, COURSE_ID)
     CourseActions.loaded(CourseObj, COURSE_ID)
 
   describe 'Dashboard', ->
     it 'shows blank period graphic for blank periods', ->
+      periodId = BaseModel.course.periods[BLANK_PERIOD].id
       RenderHelper(Dashboard, COURSE_ID, BLANK_PERIOD).then ({dom}) ->
         expect(dom.querySelector('.blank-course')).to.not.be.null
         

Section = require '../../../src/components/cc-dashboard/section'
SectionProgress = require '../../../src/components/cc-dashboard/section-progress'
SectionPerformance = require '../../../src/components/cc-dashboard/section-performance'

BaseModel = require '../../../api/courses/1/cc/dashboard.json'
ExtendBaseStore = (props) -> _.extend({}, BaseModel, props)

      periodId = BaseModel.course.periods[activePeriod].id
      numChapters = CCDashboardStore.chaptersForDisplay(COURSE_ID, periodId).length
      RenderHelper(Dashboard, COURSE_ID, activePeriod).then ({dom}) ->
        if (numChapters)
          expect(dom.querySelector('.blank-course')).to.be.null
        expect(dom.querySelectorAll('.dashboard .chapter').length).to.equal(numChapters)

  describe 'Chapter', ->
