     api.channel.emit('error', error)
     expect(wrapper.find('ModalTitle').render().text()).to.equal('Past Course')
     expect(wrapper.find('ModalBody').render().text()).to.include('course ended')
+    wrapper.find('ModalFooter Button').simulate('click')
+    expect(Navigation.channel.emit).toHaveBeenCalledWith('show.progress', view: 'progress')
     undefined

    api.channel.emit('error', error)
    expect(wrapper.find('ModalTitle').render().text()).to.equal('Future Course')
    expect(wrapper.find('ModalBody').render().text()).to.include('not yet started')
    undefined

  it 'renders course has ended', ->

{Testing, sinon, _, React, ReactTestUtils} = require 'shared/specs/helpers'

jest.mock '../../src/navigation/model'

ErrorNotification = require 'concept-coach/error-notification'

TASK  = require '../../api/cc/tasks/C_UUID/m_uuid/GET'
