Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions features/hidden_links.feature
Original file line number Diff line number Diff line change
Expand Up @@ -70,39 +70,39 @@ Feature: Hidden Links
And I am signed in as "[email protected]"
When I follow "TextMate 2"
And I follow "Shiny!"
Then I should see the "Edit" link
Then I should see the "Edit Ticket" link

Scenario: Edit ticket link is hidden from a user without permission
Given "[email protected]" can view the "TextMate 2" project
And I am signed in as "[email protected]"
When I follow "TextMate 2"
And I follow "Shiny!"
Then I should not see the "Edit" link
Then I should not see the "Edit Ticket" link

Scenario: Edit ticket link is shown to admins
Given I am signed in as "[email protected]"
When I follow "TextMate 2"
And I follow "Shiny!"
Then I should see the "Edit" link
Then I should see the "Edit Ticket" link

Scenario: Delete ticket link is shown to a user with permission
Given "[email protected]" can view the "TextMate 2" project
And "[email protected]" can delete tickets in the "TextMate 2" project
And I am signed in as "[email protected]"
When I follow "TextMate 2"
And I follow "Shiny!"
Then I should see "Delete"
Then I should see "Delete Ticket"

Scenario: Delete ticket link is hidden from a user without permission
Given "[email protected]" can view the "TextMate 2" project
And I am signed in as "[email protected]"
When I follow "TextMate 2"
And I follow "Shiny!"
Then I should not see the "Delete" link
Then I should not see the "Delete Ticket" link

Scenario: Delete ticket link is shown to admins
Given I am signed in as "[email protected]"
When I follow "TextMate 2"
And I follow "Shiny!"
Then I should see the "Delete" link
Then I should see the "Delete Ticket" link