Skip to content

Instantly share code, notes, and snippets.

@NigelThorne
Created April 22, 2009 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NigelThorne/99516 to your computer and use it in GitHub Desktop.
Save NigelThorne/99516 to your computer and use it in GitHub Desktop.
Given I am a <role>
And I am on the entity list screen
When I <action> an <state> entity
Then control1 is <control1>
And control2 is <control2>
And control3 is <control3>
Examples:
| role | action | state | control1 | control2 | control3 |
| Admin | Edit | new | Enabled | Enabled | Disabled |
| Admin | View | new | Enabled | Enabled | Disabled |
| Admin | Edit | expired | Enabled | Enabled | Disabled |
| Admin | View | expired | Enabled | Enabled | Disabled |
| User | Edit | new | Hidden | Enabled | Enabled |
| User | View | new | Hidden | Disabled | Disabled |
| User | Edit | expired | Hidden | Enabled | Enabled |
| User | View | expired | Hidden | Disabled | Disabled |
Given I am a <role>
And I am on the entity list screen
When I <action> an <state> entity
Then control1 is <control1>
And control2 is <control2>
And control3 is <control3>
Examples:
| role | action | state | control1 | control2 | control3 |
| Admin | [Edit|View] | [new|expired] | Enabled | Enabled | Disabled |
| User | Edit | [new|expired] | Hidden | Enabled | Enabled |
| User | View | [new|expired] | Hidden | Disabled | Disabled |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment