gitlab-org--gitlab-foss/features/snippets/user.feature

35 lines
1.4 KiB
Gherkin
Raw Normal View History

@snippets
Feature: Snippets User
2013-03-24 18:17:38 -04:00
Background:
Given I sign in as a user
And I have public "Personal snippet one" snippet
And I have private "Personal snippet private" snippet
2014-10-08 09:44:25 -04:00
And I have internal "Personal snippet internal" snippet
2013-03-24 18:17:38 -04:00
Scenario: I should see all my snippets
Given I visit my snippets page
Then I should see "Personal snippet one" in snippets
And I should see "Personal snippet private" in snippets
2014-10-08 09:44:25 -04:00
And I should see "Personal snippet internal" in snippets
2013-03-24 18:17:38 -04:00
Scenario: I can see only my private snippets
Given I visit my snippets page
And I click "Private" filter
Then I should not see "Personal snippet one" in snippets
2014-10-08 09:44:25 -04:00
And I should not see "Personal snippet internal" in snippets
2013-03-24 18:17:38 -04:00
And I should see "Personal snippet private" in snippets
Scenario: I can see only my public snippets
Given I visit my snippets page
2014-10-08 09:44:25 -04:00
And I click "Public" filter
2013-03-24 18:17:38 -04:00
Then I should see "Personal snippet one" in snippets
And I should not see "Personal snippet private" in snippets
2014-10-08 09:44:25 -04:00
And I should not see "Personal snippet internal" in snippets
Scenario: I can see only my internal snippets
Given I visit my snippets page
And I click "Internal" filter
Then I should see "Personal snippet internal" in snippets
And I should not see "Personal snippet private" in snippets
And I should not see "Personal snippet one" in snippets