mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 21:56:19 +10:00
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: VERSION app/controllers/admin/application_settings_controller.rb app/controllers/omniauth_callbacks_controller.rb app/controllers/projects/project_members_controller.rb app/helpers/application_settings_helper.rb app/models/user.rb app/services/files/base_service.rb app/views/profiles/accounts/show.html.haml db/schema.rb doc/install/installation.md doc/update/6.x-or-7.x-to-7.11.md doc/workflow/README.md lib/gitlab/markdown/external_issue_reference_filter.rb lib/gitlab/reference_extractor.rb lib/gitlab/upgrader.rb
93 lines
3.0 KiB
Gherkin
93 lines
3.0 KiB
Gherkin
Feature: Project
|
|
Background:
|
|
Given I sign in as a user
|
|
And I own project "Shop"
|
|
And project "Shop" has push event
|
|
And I visit project "Shop" page
|
|
|
|
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
|
|
|
|
@javascript
|
|
Scenario: I should see project activity
|
|
When I visit project "Shop" page
|
|
Then I should see project "Shop" activity feed
|
|
|
|
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
|
|
|
|
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
|
|
|
|
Scenario: I visit edit project and fill in merge request template
|
|
When I visit edit project "Shop" page
|
|
Then I should see project settings
|
|
And I fill in merge request template
|
|
And I save project
|
|
Then I should see project with merge request template saved
|
|
|
|
Scenario: I should see project readme and version
|
|
When I visit project "Shop" page
|
|
And I should see project "Shop" version
|
|
|
|
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
|
|
|
|
@javascript
|
|
Scenario: I should have default tab per my preference
|
|
And I own project "Forum"
|
|
When I select project "Forum" README tab
|
|
Then I should see project "Forum" README
|
|
And I visit project "Shop" page
|
|
Then I should see project "Shop" README
|
|
|
|
@javascript
|
|
Scenario: I should see audit events
|
|
And gitlab user "Pete"
|
|
And "Pete" is "Shop" developer
|
|
When I visit project "Shop" settings page
|
|
And I go to "Members"
|
|
And I change "Pete" access level to master
|
|
And I go to "Audit Events"
|
|
Then I should see the audit event listed
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|