 
   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)
+      expect(@plugin.forwardsButton.getHeight()).toBe @plugin.getLastVisibleScrollableColumn().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)
+      expect(@plugin.backwardsButton.getHeight()).toBe @plugin.getFirstVisibleScrollableColumn().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()
+      expect(@plugin.forwardsButton.getHeight()).toBe @plugin.getLastVisibleScrollableColumn().getProgressBar().getTop() - @plugin.getLastVisibleScrollableColumn().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()
+      expect(@plugin.backwardsButton.getHeight()).toBe  @plugin.getLastVisibleScrollableColumn().getProgressBar().getTop() - @plugin.getFirstVisibleScrollableColumn().getColumnHeader().getEl().getTop()
 
   helpers
     createBoard: (options = {}) ->


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

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


        plugins: [
          ptype: 'rallytimeboxscrollablecardboard'
          pluginId: 'scrollablePlugin'
          getFirstVisibleScrollableColumn: ->
            @cmp.getColumns()[0]
          getLastVisibleScrollableColumn: ->
            Rally.util.Array.last @cmp.getColumns()
          getScrollableColumns: ->
            @cmp.getColumns()
        ]
        renderTo: 'testDiv'
        scrollableColumnRecords: @bucketedIterationRecords
