Skip to content

Instantly share code, notes, and snippets.

@james-prickett
Created April 1, 2011 17:16
Show Gist options
  • Select an option

  • Save james-prickett/898500 to your computer and use it in GitHub Desktop.

Select an option

Save james-prickett/898500 to your computer and use it in GitHub Desktop.
Another security spec
def "Verify View users do not have edit or admin menu options"() {
given: "A view user logs in"
login "viewuser", "password", DashboardPage
when: "The user should be landed on the dashboard"
waitFor { at DashboardPage }
then: "They should not have any edit or admin menu options"
assert $("li", id: "menu-users").size() == 0
assert $("li", id: "menu-admin").size() == 0
assert $("li", id: "menu-reports-my").size() == 0
assert $("li", id: "menu-reports-create").size() == 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment