rewrite project commits features using spinach
This commit is contained in:
parent
7aeb92b8e4
commit
080bd12e16
24 changed files with 178 additions and 20 deletions
26
features/project/commits/branches.feature
Normal file
26
features/project/commits/branches.feature
Normal file
|
@ -0,0 +1,26 @@
|
|||
Feature: Project Browse branches
|
||||
Background:
|
||||
Given I sign in as a user
|
||||
And I own project "Shop"
|
||||
And project "Shop" has protected branches
|
||||
Given I visit project branches page
|
||||
|
||||
Scenario: I can see project recent git branches
|
||||
Then I should see "Shop" recent branches list
|
||||
|
||||
Scenario: I can see project all git branches
|
||||
Given I click link "All"
|
||||
Then I should see "Shop" all branches list
|
||||
|
||||
Scenario: I can see project protected git branches
|
||||
Given I click link "Protected"
|
||||
Then I should see "Shop" protected branches list
|
||||
|
||||
# @wip
|
||||
# Scenario: I can download project by branch
|
||||
|
||||
# @wip
|
||||
# Scenario: I can view protected branches
|
||||
|
||||
# @wip
|
||||
# Scenario: I can manage protected branches
|
10
features/project/commits/commit_comments.feature
Normal file
10
features/project/commits/commit_comments.feature
Normal file
|
@ -0,0 +1,10 @@
|
|||
Feature: Project Comment commit
|
||||
Background:
|
||||
Given I sign in as a user
|
||||
And I own project "Shop"
|
||||
Given I visit project commit page
|
||||
|
||||
@javascript
|
||||
Scenario: I comment commit
|
||||
Given I leave a comment like "XML attached"
|
||||
Then I should see comment "XML attached"
|
21
features/project/commits/commits.feature
Normal file
21
features/project/commits/commits.feature
Normal file
|
@ -0,0 +1,21 @@
|
|||
Feature: Project Browse commits
|
||||
Background:
|
||||
Given I sign in as a user
|
||||
And I own project "Shop"
|
||||
Given I visit project commits page
|
||||
|
||||
Scenario: I browse commits list for master branch
|
||||
Then I see project commits
|
||||
|
||||
Scenario: I browse atom feed of commits list for master branch
|
||||
Given I click atom feed link
|
||||
Then I see commits atom feed
|
||||
|
||||
Scenario: I browse commit from list
|
||||
Given I click on commit link
|
||||
Then I see commit info
|
||||
|
||||
Scenario: I compare refs
|
||||
Given I visit compare refs page
|
||||
And I fill compare fields with refs
|
||||
And I see compared refs
|
11
features/project/commits/tags.feature
Normal file
11
features/project/commits/tags.feature
Normal file
|
@ -0,0 +1,11 @@
|
|||
Feature: Project Browse tags
|
||||
Background:
|
||||
Given I sign in as a user
|
||||
And I own project "Shop"
|
||||
Given I visit project tags page
|
||||
|
||||
Scenario: I can see all git tags
|
||||
Then I should see "Shop" all tags list
|
||||
|
||||
# @wip
|
||||
# Scenario: I can download project by tag
|
11
features/project/create_project.feature
Normal file
11
features/project/create_project.feature
Normal file
|
@ -0,0 +1,11 @@
|
|||
Feature: Create Project
|
||||
In order to get access to project sections
|
||||
A user with ability to create a project
|
||||
Should be able to create a new one
|
||||
|
||||
Scenario: User create a project
|
||||
Given I signin as a user
|
||||
When I visit new project page
|
||||
And fill project form with valid data
|
||||
Then I should see project page
|
||||
And I should see empty project instuctions
|
0
features/project/deploy_keys.feature
Normal file
0
features/project/deploy_keys.feature
Normal file
82
features/project/issues/issues.feature
Normal file
82
features/project/issues/issues.feature
Normal file
|
@ -0,0 +1,82 @@
|
|||
Feature: Issues
|
||||
Background:
|
||||
Given I signin as a user
|
||||
And I own project "Shop"
|
||||
And project "Shop" have "Release 0.4" open issue
|
||||
And project "Shop" have "Release 0.3" closed issue
|
||||
And I visit project "Shop" issues page
|
||||
|
||||
Scenario: I should see open issues
|
||||
Given I should see "Release 0.4" in issues
|
||||
And I should not see "Release 0.3" in issues
|
||||
|
||||
Scenario: I should see closed issues
|
||||
Given I click link "Closed"
|
||||
Then I should see "Release 0.3" in issues
|
||||
And I should not see "Release 0.4" in issues
|
||||
|
||||
Scenario: I should see all issues
|
||||
Given I click link "All"
|
||||
Then I should see "Release 0.3" in issues
|
||||
And I should see "Release 0.4" in issues
|
||||
|
||||
Scenario: I visit issue page
|
||||
Given I click link "Release 0.4"
|
||||
Then I should see issue "Release 0.4"
|
||||
|
||||
@javascript
|
||||
Scenario: I submit new unassigned issue
|
||||
Given I click link "New Issue"
|
||||
And I submit new issue "500 error on profile"
|
||||
Given I click link "500 error on profile"
|
||||
Then I should see issue "500 error on profile"
|
||||
|
||||
@javascript
|
||||
Scenario: I comment issue
|
||||
Given I visit issue page "Release 0.4"
|
||||
And I leave a comment like "XML attached"
|
||||
Then I should see comment "XML attached"
|
||||
|
||||
@javascript
|
||||
Scenario: I search issue
|
||||
Given I fill in issue search with "Release"
|
||||
Then I should see "Release 0.4" in issues
|
||||
And I should not see "Release 0.3" in issues
|
||||
|
||||
@javascript
|
||||
Scenario: I search issue that not exist
|
||||
Given I fill in issue search with "Bug"
|
||||
Then I should not see "Release 0.4" in issues
|
||||
And I should not see "Release 0.3" in issues
|
||||
|
||||
|
||||
@javascript
|
||||
Scenario: I search all issues
|
||||
Given I click link "All"
|
||||
And I fill in issue search with "0.3"
|
||||
Then I should see "Release 0.3" in issues
|
||||
And I should not see "Release 0.4" in issues
|
||||
|
||||
@javascript
|
||||
Scenario: I clear search
|
||||
Given I click link "All"
|
||||
And I fill in issue search with "Something"
|
||||
And I fill in issue search with ""
|
||||
Then I should see "Release 0.4" in issues
|
||||
And I should see "Release 0.3" in issues
|
||||
|
||||
@javascript
|
||||
Scenario: I create Issue with pre-selected milestone
|
||||
Given project "Shop" has milestone "v2.2"
|
||||
And project "Shop" has milestone "v3.0"
|
||||
And I visit project "Shop" issues page
|
||||
When I select milestone "v3.0"
|
||||
And I click link "New Issue"
|
||||
Then I should see selected milestone with title "v3.0"
|
||||
|
||||
@javascript
|
||||
Scenario: I create Issue with pre-selected assignee
|
||||
When I select first assignee from "Shop" project
|
||||
And I click link "New Issue"
|
||||
Then I should see first assignee from "Shop" as selected assignee
|
||||
|
13
features/project/issues/labels.feature
Normal file
13
features/project/issues/labels.feature
Normal file
|
@ -0,0 +1,13 @@
|
|||
Feature: Labels
|
||||
Background:
|
||||
Given I signin as a user
|
||||
And I own project "Shop"
|
||||
And project "Shop" have issues tags:
|
||||
| name |
|
||||
| bug |
|
||||
| feature |
|
||||
Given I visit project "Shop" labels page
|
||||
|
||||
Scenario: I should see active milestones
|
||||
Then I should see label "bug"
|
||||
And I should see label "feature"
|
18
features/project/issues/milestones.feature
Normal file
18
features/project/issues/milestones.feature
Normal file
|
@ -0,0 +1,18 @@
|
|||
Feature: Milestones
|
||||
Background:
|
||||
Given I signin as a user
|
||||
And I own project "Shop"
|
||||
And project "Shop" has milestone "v2.2"
|
||||
Given I visit project "Shop" milestones page
|
||||
|
||||
Scenario: I should see active milestones
|
||||
Then I should see milestone "v2.2"
|
||||
|
||||
Scenario: I should see milestone
|
||||
Given I click link "v2.2"
|
||||
Then I should see milestone "v2.2"
|
||||
|
||||
Scenario: I create new milestone
|
||||
Given I click link "New Milestone"
|
||||
And I submit new milestone "v2.3"
|
||||
Then I should see milestone "v2.3"
|
42
features/project/merge_requests.feature
Normal file
42
features/project/merge_requests.feature
Normal file
|
@ -0,0 +1,42 @@
|
|||
Feature: Merge Requests
|
||||
Background:
|
||||
Given I signin as a user
|
||||
And I own project "Shop"
|
||||
And project "Shop" have "Bug NS-04" open merge request
|
||||
And project "Shop" have "Feature NS-03" closed merge request
|
||||
And I visit project "Shop" merge requests page
|
||||
|
||||
Scenario: I should see open merge requests
|
||||
Then I should see "Bug NS-04" in merge requests
|
||||
And I should not see "Feature NS-03" in merge requests
|
||||
|
||||
Scenario: I should see closed merge requests
|
||||
Given I click link "Closed"
|
||||
Then I should see "Feature NS-03" in merge requests
|
||||
And I should not see "Bug NS-04" in merge requests
|
||||
|
||||
Scenario: I should see all merge requests
|
||||
Given I click link "All"
|
||||
Then I should see "Feature NS-03" in merge requests
|
||||
And I should see "Bug NS-04" in merge requests
|
||||
|
||||
Scenario: I visit merge request page
|
||||
Given I click link "Bug NS-04"
|
||||
Then I should see merge request "Bug NS-04"
|
||||
|
||||
Scenario: I close merge request page
|
||||
Given I click link "Bug NS-04"
|
||||
And I click link "Close"
|
||||
Then I should see closed merge request "Bug NS-04"
|
||||
|
||||
Scenario: I submit new unassigned merge request
|
||||
Given I click link "New Merge Request"
|
||||
And I submit new merge request "Wiki Feature"
|
||||
Then I should see merge request "Wiki Feature"
|
||||
|
||||
@javascript
|
||||
Scenario: I comment merge request
|
||||
Given I visit merge request page "Bug NS-04"
|
||||
And I leave a comment like "XML attached"
|
||||
Then I should see comment "XML attached"
|
||||
|
10
features/project/network.feature
Normal file
10
features/project/network.feature
Normal file
|
@ -0,0 +1,10 @@
|
|||
@javascript
|
||||
Feature: Project Network Graph
|
||||
|
||||
Background:
|
||||
Given I signin as a user
|
||||
And I own project "Shop"
|
||||
And I visit project "Shop" network page
|
||||
|
||||
Scenario: I should see project network
|
||||
Then page should have network graph
|
11
features/project/project.feature
Normal file
11
features/project/project.feature
Normal file
|
@ -0,0 +1,11 @@
|
|||
Feature: Project
|
||||
Background:
|
||||
Given I signin as a user
|
||||
And I own project "Shop"
|
||||
And I visit project "Shop" page
|
||||
|
||||
Scenario: I should see project activity
|
||||
|
||||
Scenario: I edit project
|
||||
|
||||
Scenario: I visit attachments
|
0
features/project/snippets.feature
Normal file
0
features/project/snippets.feature
Normal file
23
features/project/source/browse_files.feature
Normal file
23
features/project/source/browse_files.feature
Normal file
|
@ -0,0 +1,23 @@
|
|||
Feature: Browse git repo
|
||||
Background:
|
||||
Given I signin as a user
|
||||
And I own project "Shop"
|
||||
Given I visit project source page
|
||||
|
||||
Scenario: I browse files from master branch
|
||||
Then I should see files from repository
|
||||
|
||||
Scenario: I browse files for specific ref
|
||||
Given I visit project source page for "8470d70"
|
||||
Then I should see files from repository for "8470d70"
|
||||
|
||||
Scenario: I browse file content
|
||||
Given I click on file from repo
|
||||
Then I should see it content
|
||||
|
||||
Scenario: I browse raw file
|
||||
Given I visit blob file from repo
|
||||
And I click on raw button
|
||||
Then I should see raw file content
|
||||
|
||||
|
10
features/project/source/git_blame.feature
Normal file
10
features/project/source/git_blame.feature
Normal file
|
@ -0,0 +1,10 @@
|
|||
Feature: Browse git repo
|
||||
Background:
|
||||
Given I signin as a user
|
||||
And I own project "Shop"
|
||||
Given I visit project source page
|
||||
|
||||
Scenario: I blame file
|
||||
Given I click on file from repo
|
||||
And I click blame button
|
||||
Then I should see git file blame
|
35
features/project/team_management.feature
Normal file
35
features/project/team_management.feature
Normal file
|
@ -0,0 +1,35 @@
|
|||
Feature: Project Team management
|
||||
Background:
|
||||
Given I signin as a user
|
||||
And I own project "Shop"
|
||||
And gitlab user "Mike"
|
||||
And gitlab user "Sam"
|
||||
And "Sam" is "Shop" developer
|
||||
And I visit project "Shop" team page
|
||||
|
||||
Scenario: See all team members
|
||||
Then I should be able to see myself in team
|
||||
And I should see "Sam" in team list
|
||||
|
||||
Scenario: Add user to project
|
||||
Given I click link "New Team Member"
|
||||
And I select "Mike" as "Reporter"
|
||||
Then I should see "Mike" in team list as "Reporter"
|
||||
|
||||
@javascript
|
||||
Scenario: Update user access
|
||||
Given I should see "Sam" in team list as "Developer"
|
||||
And I change "Sam" role to "Reporter"
|
||||
Then I visit project "Shop" team page
|
||||
And I should see "Sam" in team list as "Reporter"
|
||||
|
||||
Scenario: View team member profile
|
||||
Given I click link "Sam"
|
||||
Then I should see "Sam" team profile
|
||||
|
||||
Scenario: Cancel team member
|
||||
Given I click link "Sam"
|
||||
And I click link "Remove from team"
|
||||
Then I visit project "Shop" team page
|
||||
And I should not see "Sam" in team list
|
||||
|
17
features/project/wall.feature
Normal file
17
features/project/wall.feature
Normal file
|
@ -0,0 +1,17 @@
|
|||
@javascript
|
||||
Feature: Project Wall
|
||||
In order to use Project Wall
|
||||
A user
|
||||
Should be able to read & write messages
|
||||
|
||||
Background:
|
||||
Given I signin as a user
|
||||
And I own project "Shop"
|
||||
And I visit project "Shop" wall page
|
||||
|
||||
Scenario: Write comment
|
||||
Given I write new comment "my special test message"
|
||||
Then I should see project wall note "my special test message"
|
||||
|
||||
Then I visit project "Shop" wall page
|
||||
And I should see project wall note "my special test message"
|
0
features/project/web_hooks.feature
Normal file
0
features/project/web_hooks.feature
Normal file
15
features/project/wiki.feature
Normal file
15
features/project/wiki.feature
Normal file
|
@ -0,0 +1,15 @@
|
|||
Feature: Wiki
|
||||
Background:
|
||||
Given I signin as a user
|
||||
And I own project "Shop"
|
||||
Given I visit project wiki page
|
||||
|
||||
Scenario: Add new page
|
||||
Given I create Wiki page
|
||||
Then I should see newly created wiki page
|
||||
|
||||
@javascript
|
||||
Scenario: I comment wiki page
|
||||
Given I create Wiki page
|
||||
And I leave a comment like "XML attached"
|
||||
Then I should see comment "XML attached"
|
Loading…
Add table
Add a link
Reference in a new issue