```coffeescript
expect = require('chai').expect
phantom = require('phantom')

url = 'http://localhost:4567'

describe 'Load page: http://localhost:4567 and', ->
  browser  = null
  testOpts =
    title: 'MyWay!'

  before ->
    browser = new Browser()
    return browser.visit url

  it "is expected to have a title of '#{testOpts.title}'", (done) ->
    expect(browser.text("title")).to.equal(testOpts.title)
    done()

  it "should have a title of '#{testOpts.title}'", (done) ->
    browser.text("title").should.equal(testOpts.title)
    done()

  it "should have a white background on the body", (done) ->
    browser.assert.style('#main', 'background', 'white')
    done()
```

Test HTML and CSS with PhantomJS
user
```coffeescript
expect = require('chai').expect
phantom = require('phantom')

visitUrl = (url, callback) ->
  phantom.create (ph) ->
    ph.createPage (pg) ->
      pg.open url, (status) ->
        callback(pg)

describe 'On page: http://localhost:4567 and', ->
  page = null

  before (done) ->
    visitUrl 'http://localhost:4567', (pg) ->
      page = pg
      done()

  describe 'testing HTML', ->
    it 'retrieves the page title', (done) ->
      page.evaluate (-> document.title), (result) ->
        expect(result).to.equal('MyWay!')
        done()

  describe 'testing CSS', ->
    it 'retrieves computed styles', (done) ->
      page.evaluate (->
        getComputedStyle(document.body).getPropertyValue('font-family')
      ), (result) ->
        expect(result).to.have.string('Helvetica Neue')
        done()
```
assistant