   it 'should scroll forward when the forward button is clicked', ->
     @createBoard().then =>
       @scrollForwards().then =>
-        expect(@plugin.getLastScrollableColumn().timeboxRecords).toBe (Rally.util.Array.last @bucketedIterationRecords)
+        expect(@plugin.getLastVisibleScrollableColumn().timeboxRecords).toBe (Rally.util.Array.last @bucketedIterationRecords)
 
   it 'should scroll backwards when the back button is clicked', ->
     @createBoard().then =>
       @scrollBackwards().then =>
-        expect(@plugin.getFirstScrollableColumn().timeboxRecords).toBe @bucketedIterationRecords[0]
+        expect(@plugin.getFirstVisibleScrollableColumn().timeboxRecords).toBe @bucketedIterationRecords[0]
 
   it 'should contain same number of columns after scrolling forwards', ->
     @createBoard().then =>


  it 'should size forwards button to column header when there is no progress bar', ->
    @createBoard().then =>
      expect(@plugin.forwardsButton.getHeight()).toBe @plugin.getLastScrollableColumn().getColumnHeaderCell().getHeight(Ext.isGecko || Ext.isIE)

  it 'should size backwards button to column header when there is no progress bar', ->
    @createBoard().then =>
      expect(@plugin.backwardsButton.getHeight()).toBe @plugin.getFirstScrollableColumn().getColumnHeaderCell().getHeight(Ext.isGecko || Ext.isIE)

  it 'should size forwards button to column header minus progress bar when there is a progress bar', ->
    @createBoard(
      plannedVelocity: 10
    ).then =>
      expect(@plugin.forwardsButton.getHeight()).toBe @plugin.getLastScrollableColumn().getProgressBar().getTop() - @plugin.getLastScrollableColumn().getColumnHeader().getEl().getTop()

  it 'should size backwards button to column header minus progress bar when there is a progress bar', ->
    @createBoard(
      plannedVelocity: 10
    ).then =>
      expect(@plugin.backwardsButton.getHeight()).toBe  @plugin.getLastScrollableColumn().getProgressBar().getTop() - @plugin.getFirstScrollableColumn().getColumnHeader().getEl().getTop()

  helpers
    createBoard: (options = {}) ->


  it 'should destroy column removed when scrolling forwards', ->
    @createBoard().then =>
      columnToRemove = @plugin.getFirstVisibleScrollableColumn()
      @scrollForwards().then =>
        expect(columnToRemove.isDestroyed).toBe true

  it 'should destroy column removed when scrolling backwards', ->
    @createBoard().then =>
      columnToRemove = @plugin.getLastVisibleScrollableColumn()
      @scrollBackwards().then =>
        expect(columnToRemove.isDestroyed).toBe true

