 parsePrice = (str) ->
   str = str.substring(1, str.length) # strip $
   parseFloat str
-
-sleep = (seconds) ->
-  e = new Date().getTime() + (seconds * 1000)
-  while (new Date().getTime() <= e)
-    1
 
 describe "Checkout (#{process.env.BROWSER})", ->
   testPage = "http://localhost:#{process.env.PORT ? 3333}/widget.html"


        .waitForExist '.crowdstart-line-item'

        .waitForVisible '.crowdstart-line-item:nth-child(2) .select2', ->
          sleep 1

        # Select 2 for 'Such T-shirt
        .click '.crowdstart-line-item:nth-child(2) .select2'

      getBrowser()
        .url testPage

        .waitForExist 'modal'

        # Click the Buy button
        .click 'a.btn'
