2014-10-02 12:42:54 -04:00
|
|
|
Feature: Project
|
2012-08-03 12:59:55 -04:00
|
|
|
Background:
|
2013-01-09 00:14:05 -05:00
|
|
|
Given I sign in as a user
|
2012-08-03 12:59:55 -04:00
|
|
|
And I own project "Shop"
|
2013-01-09 00:14:05 -05:00
|
|
|
And project "Shop" has push event
|
2012-09-10 09:35:23 -04:00
|
|
|
And I visit project "Shop" page
|
2012-08-03 12:59:55 -04:00
|
|
|
|
2014-01-25 12:15:44 -05:00
|
|
|
Scenario: I edit the project avatar
|
|
|
|
Given I visit edit project "Shop" page
|
|
|
|
When I change the project avatar
|
|
|
|
And I should see new project avatar
|
|
|
|
And I should see the "Remove avatar" button
|
|
|
|
|
|
|
|
Scenario: I remove the project avatar
|
|
|
|
Given I visit edit project "Shop" page
|
|
|
|
And I have an project avatar
|
|
|
|
When I remove my project avatar
|
|
|
|
Then I should see the default project avatar
|
|
|
|
And I should not see the "Remove avatar" button
|
|
|
|
|
2017-05-08 19:52:05 -04:00
|
|
|
@javascript
|
2015-07-08 14:22:42 -04:00
|
|
|
Scenario: I should have readme on page
|
|
|
|
And I visit project "Shop" page
|
|
|
|
Then I should see project "Shop" README
|
|
|
|
|
2015-10-16 04:10:33 -04:00
|
|
|
Scenario: I should see last commit with CI
|
|
|
|
Given project "Shop" has CI enabled
|
|
|
|
Given project "Shop" has CI build
|
|
|
|
And I visit project "Shop" page
|
|
|
|
And I should see last commit with CI status
|
|
|
|
|
2013-06-04 10:01:41 -04:00
|
|
|
@javascript
|
2013-01-09 00:14:05 -05:00
|
|
|
Scenario: I should see project activity
|
2015-07-08 14:22:42 -04:00
|
|
|
When I visit project "Shop" activity page
|
2013-01-09 00:14:05 -05:00
|
|
|
Then I should see project "Shop" activity feed
|
2012-08-03 12:59:55 -04:00
|
|
|
|
2013-01-09 00:14:05 -05:00
|
|
|
Scenario: I visit edit project
|
|
|
|
When I visit edit project "Shop" page
|
|
|
|
Then I should see project settings
|
|
|
|
|
|
|
|
Scenario: I edit project
|
|
|
|
When I visit edit project "Shop" page
|
|
|
|
And change project settings
|
|
|
|
And I save project
|
|
|
|
Then I should see project with new settings
|
2013-12-23 06:19:13 -05:00
|
|
|
|
|
|
|
Scenario: I change project path
|
|
|
|
When I visit edit project "Shop" page
|
|
|
|
And change project path settings
|
|
|
|
Then I should see project with new path settings
|
2014-06-25 05:07:06 -04:00
|
|
|
|
2014-07-21 15:52:01 -04:00
|
|
|
Scenario: I should change project default branch
|
|
|
|
When I visit edit project "Shop" page
|
|
|
|
And change project default branch
|
|
|
|
And I save project
|
|
|
|
Then I should see project default branch changed
|
2014-09-30 08:59:30 -04:00
|
|
|
|
2015-04-27 09:09:20 -04:00
|
|
|
Scenario: I tag a project
|
|
|
|
When I visit edit project "Shop" page
|
|
|
|
Then I should see project settings
|
|
|
|
And I add project tags
|
|
|
|
And I save project
|
|
|
|
Then I should see project tags
|
2015-05-22 06:17:37 -04:00
|
|
|
|
|
|
|
Scenario: I should not see "New Issue" or "New Merge Request" buttons
|
|
|
|
Given I disable issues and merge requests in project
|
|
|
|
When I visit project "Shop" page
|
|
|
|
Then I should not see "New Issue" button
|
|
|
|
And I should not see "New Merge Request" button
|
2015-05-27 08:07:44 -04:00
|
|
|
|
|
|
|
Scenario: I should not see Project snippets
|
|
|
|
Given I disable snippets in project
|
|
|
|
When I visit project "Shop" page
|
|
|
|
Then I should not see "Snippets" button
|
2015-09-16 19:03:48 -04:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I edit Project Notifications
|
|
|
|
Given I click notifications drop down button
|
|
|
|
When I choose Mention setting
|
|
|
|
Then I should see Notification saved message
|
2016-02-22 12:37:26 -05:00
|
|
|
|
|
|
|
Scenario: I should see command line instructions
|
|
|
|
Given I own an empty project
|
|
|
|
And I visit my empty project page
|
|
|
|
And I create bare repo
|
|
|
|
Then I should see command line instructions
|