       context 'when I click the only button on the modal', ->
         before (done) ->
           wd40.click '.modal .btn', done
+        
+        # TODO: Not sure why we need this timeout. 
+        before (done) ->
+          setTimeout done, 5000
 
         it 'it closes the modal window', (done) ->
           wd40.waitForInvisibleByCss '.modal', done

        it 'it shows I am on the medium plan', (done) ->
          wd40.elementByCss '.account-medium .currentPlan', (err, span) ->
            should.exist span
            done()
        before (done) ->
          wd40.click '.modal .btn', done

        # TODO: Not sure why we need this timeout. 
        before (done) ->
          setTimeout done, 5000

        it 'it closes the modal window', (done) ->
          wd40.waitForInvisibleByCss '.modal', done

