Created
April 1, 2011 17:16
-
-
Save james-prickett/898500 to your computer and use it in GitHub Desktop.
Another security spec
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
| 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