diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-09-10 04:27:11 -0700 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-09-10 04:27:11 -0700 |
commit | 080bd12e167dceb3274bb488b7be787379d126b4 (patch) | |
tree | a984d98fdfdd01a2ee73ebcb36f29202f1d069ff /features/project | |
parent | 7aeb92b8e4bb279346d9dcec7bbca1725cec8eb1 (diff) | |
download | gitlab-ce-080bd12e167dceb3274bb488b7be787379d126b4.tar.gz |
rewrite project commits features using spinach
Diffstat (limited to 'features/project')
-rw-r--r-- | features/project/commits/branches.feature | 26 | ||||
-rw-r--r-- | features/project/commits/commit_comments.feature | 10 | ||||
-rw-r--r-- | features/project/commits/commits.feature | 21 | ||||
-rw-r--r-- | features/project/commits/tags.feature | 11 | ||||
-rw-r--r-- | features/project/create_project.feature | 11 | ||||
-rw-r--r-- | features/project/deploy_keys.feature | 0 | ||||
-rw-r--r-- | features/project/issues/issues.feature | 82 | ||||
-rw-r--r-- | features/project/issues/labels.feature | 13 | ||||
-rw-r--r-- | features/project/issues/milestones.feature | 18 | ||||
-rw-r--r-- | features/project/merge_requests.feature | 42 | ||||
-rw-r--r-- | features/project/network.feature | 10 | ||||
-rw-r--r-- | features/project/project.feature | 11 | ||||
-rw-r--r-- | features/project/snippets.feature | 0 | ||||
-rw-r--r-- | features/project/source/browse_files.feature | 23 | ||||
-rw-r--r-- | features/project/source/git_blame.feature | 10 | ||||
-rw-r--r-- | features/project/team_management.feature | 35 | ||||
-rw-r--r-- | features/project/wall.feature | 17 | ||||
-rw-r--r-- | features/project/web_hooks.feature | 0 | ||||
-rw-r--r-- | features/project/wiki.feature | 15 |
19 files changed, 355 insertions, 0 deletions
diff --git a/features/project/commits/branches.feature b/features/project/commits/branches.feature new file mode 100644 index 00000000000..4fa4dc26a1b --- /dev/null +++ b/features/project/commits/branches.feature @@ -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 diff --git a/features/project/commits/commit_comments.feature b/features/project/commits/commit_comments.feature new file mode 100644 index 00000000000..5acf541ab96 --- /dev/null +++ b/features/project/commits/commit_comments.feature @@ -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" diff --git a/features/project/commits/commits.feature b/features/project/commits/commits.feature new file mode 100644 index 00000000000..53de6e6a264 --- /dev/null +++ b/features/project/commits/commits.feature @@ -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 diff --git a/features/project/commits/tags.feature b/features/project/commits/tags.feature new file mode 100644 index 00000000000..1ac0f8bfa45 --- /dev/null +++ b/features/project/commits/tags.feature @@ -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 diff --git a/features/project/create_project.feature b/features/project/create_project.feature new file mode 100644 index 00000000000..42d25b3f331 --- /dev/null +++ b/features/project/create_project.feature @@ -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 diff --git a/features/project/deploy_keys.feature b/features/project/deploy_keys.feature new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/features/project/deploy_keys.feature diff --git a/features/project/issues/issues.feature b/features/project/issues/issues.feature new file mode 100644 index 00000000000..b2301b3f1ff --- /dev/null +++ b/features/project/issues/issues.feature @@ -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 + diff --git a/features/project/issues/labels.feature b/features/project/issues/labels.feature new file mode 100644 index 00000000000..5a20bfd6d14 --- /dev/null +++ b/features/project/issues/labels.feature @@ -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" diff --git a/features/project/issues/milestones.feature b/features/project/issues/milestones.feature new file mode 100644 index 00000000000..d78096a4f16 --- /dev/null +++ b/features/project/issues/milestones.feature @@ -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" diff --git a/features/project/merge_requests.feature b/features/project/merge_requests.feature new file mode 100644 index 00000000000..54b6ccde7f9 --- /dev/null +++ b/features/project/merge_requests.feature @@ -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" + diff --git a/features/project/network.feature b/features/project/network.feature new file mode 100644 index 00000000000..61c05eb367e --- /dev/null +++ b/features/project/network.feature @@ -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 diff --git a/features/project/project.feature b/features/project/project.feature new file mode 100644 index 00000000000..895a928ff81 --- /dev/null +++ b/features/project/project.feature @@ -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 diff --git a/features/project/snippets.feature b/features/project/snippets.feature new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/features/project/snippets.feature diff --git a/features/project/source/browse_files.feature b/features/project/source/browse_files.feature new file mode 100644 index 00000000000..04aebc19732 --- /dev/null +++ b/features/project/source/browse_files.feature @@ -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 + + diff --git a/features/project/source/git_blame.feature b/features/project/source/git_blame.feature new file mode 100644 index 00000000000..6aa6be47deb --- /dev/null +++ b/features/project/source/git_blame.feature @@ -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 diff --git a/features/project/team_management.feature b/features/project/team_management.feature new file mode 100644 index 00000000000..b5b485e2dc0 --- /dev/null +++ b/features/project/team_management.feature @@ -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 + diff --git a/features/project/wall.feature b/features/project/wall.feature new file mode 100644 index 00000000000..ed675e2c477 --- /dev/null +++ b/features/project/wall.feature @@ -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" diff --git a/features/project/web_hooks.feature b/features/project/web_hooks.feature new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/features/project/web_hooks.feature diff --git a/features/project/wiki.feature b/features/project/wiki.feature new file mode 100644 index 00000000000..4441ada2847 --- /dev/null +++ b/features/project/wiki.feature @@ -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" |