     expect(@state.div.querySelector('.page').textContent)
       .to.equal('A bunch of html')
 
+  it 'sets current page to active on menu', ->
+    page = ReferenceBookActions.loaded(TOC, COURSE_ID)
+    console.log page
+    expect(@state.div.querySelector('.page').textContent)
+      .to.equal('A bunch of html')
+
   it 'toggles menu when navbar control is clicked', ->
     toggle = @state.div.querySelector('.menu-toggle')
 
+    expect(_.toArray(@state.div.querySelector('.reference-book').classList))
+      .to.contain('menu-open')
+
+    commonActions.click(toggle)
     expect(_.toArray(@state.div.querySelector('.reference-book').classList))
       .to.not.contain('menu-open')
 

    expect(_.toArray(@state.div.querySelector('.reference-book').classList))
      .to.contain('menu-open')

    commonActions.click(toggle)
    expect(_.toArray(@state.div.querySelector('.reference-book').classList))
      .to.not.contain('menu-open')

  it 'navigates forward and back between pages', ->
    prevControl = @state.div.querySelector('.page-wrapper > .prev')
    expect(prevControl).to.not.exist # on first page

    nextControl = @state.div.querySelector('.page-wrapper > .next')
    expect(nextControl).to.exist
    expect(nextControl.href).to.contain(SECOND_PAGE_ID)
    page = ReactTestUtils.findRenderedComponentWithType(@state.book, Page)


    ReferenceBookPageActions.loaded(PAGE, SECOND_PAGE_ID)
    # button:0 is a mystery argument needed by ReactRouter, taken from their specs
    commonActions.click(nextControl, {button: 0})

    expect(page.context.router.getCurrentParams().cnxId)
      .to.equal(SECOND_PAGE_ID)

    expect(@state.div.querySelector('.page-wrapper > .next').href)
      .to.contain(THIRD_PAGE_ID)

    expect(@state.div.querySelector('.page-wrapper > .prev').href)
      .to.contain(FIRST_PAGE_ID)

  beforeEach ->
    ReferenceBookActions.loaded(TOC, COURSE_ID)
    ReferenceBookPageActions.loaded(PAGE, FIRST_PAGE_ID)
    renderBook(FIRST_PAGE).then (state) =>
      @state = state

  it 'renders the section title on the navbar',  ->
