Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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