Created
March 6, 2011 18:53
-
-
Save james-prickett/857535 to your computer and use it in GitHub Desktop.
a simple spoc test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.File; | |
| class HomePageTests extends BaseSpec { | |
| def "Load the home page correctly"() { | |
| when: | |
| go "/" | |
| then: | |
| $("h1").text() == "movie" | |
| $("div.clickable").size() > 0 | |
| } | |
| def "Verify that the movie view loads correctly"() { | |
| when: | |
| go "/" | |
| $("div.clickable", onclick: contains("3510")).click() | |
| then: | |
| waitFor { $("span.movie-title").text() == "127 Hours" } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment