Skip to content

Instantly share code, notes, and snippets.

@rissem
Created January 31, 2013 15:25
Show Gist options
  • Save rissem/4683655 to your computer and use it in GitHub Desktop.
Save rissem/4683655 to your computer and use it in GitHub Desktop.
casper.start url, ->
projectNameHTML = @getHTML "#projectName"
projectNameMatches = /my-project/.test(projectNameHTML)
@test.assert projectNameMatches, "project name matches my-project"
@test.assertTitle "Project Home"
result = @capture("screenshot.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment