Comments cucumber. More refactoring. Cucumber -> branches, tags
This commit is contained in:
parent
1281c122c7
commit
9844ddd43f
16 changed files with 80 additions and 192 deletions
|
@ -2,9 +2,19 @@ Feature: Browse branches
|
|||
Background:
|
||||
Given I signin as a user
|
||||
And I own project "Shop"
|
||||
And project "Shop" has protected branches
|
||||
Given I visit project branches page
|
||||
|
||||
Scenario: I can see all git branches
|
||||
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
|
||||
|
||||
Scenario: I can download project by branch
|
||||
|
||||
|
|
|
@ -4,4 +4,7 @@ Feature: Comment commit
|
|||
And I own project "Shop"
|
||||
Given I visit project commit page
|
||||
|
||||
Scenario: I leave a comment for commit
|
||||
@javascript
|
||||
Scenario: I comment commit
|
||||
Given I leave a comment like "XML attached"
|
||||
Then I should see comment "XML attached"
|
||||
|
|
|
@ -5,7 +5,6 @@ Feature: Browse tags
|
|||
Given I visit project tags page
|
||||
|
||||
Scenario: I can see all git tags
|
||||
Then I should see "Shop" all tags list
|
||||
|
||||
Scenario: I can download project by tag
|
||||
|
||||
|
||||
|
|
|
@ -35,4 +35,4 @@ Feature: Issues
|
|||
Scenario: I comment issue
|
||||
Given I visit issue page "Release 0.4"
|
||||
And I leave a comment like "XML attached"
|
||||
Then I should see commetn "XML attached"
|
||||
Then I should see comment "XML attached"
|
||||
|
|
11
features/projects/project.feature
Normal file
11
features/projects/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
|
|
@ -7,3 +7,9 @@ Feature: Wiki
|
|||
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"
|
||||
|
|
|
@ -59,3 +59,30 @@ end
|
|||
Given /^I visit project tags page$/ do
|
||||
visit tags_project_repository_path(@project)
|
||||
end
|
||||
|
||||
Then /^I should see "(.*?)" recent branches list$/ do |arg1|
|
||||
page.should have_content("Branches")
|
||||
page.should have_content("master")
|
||||
end
|
||||
|
||||
Then /^I should see "(.*?)" all branches list$/ do |arg1|
|
||||
page.should have_content("Branches")
|
||||
page.should have_content("master")
|
||||
end
|
||||
|
||||
Then /^I should see "(.*?)" all tags list$/ do |arg1|
|
||||
page.should have_content("Tags")
|
||||
page.should have_content("v1.2.1")
|
||||
end
|
||||
|
||||
Then /^I should see "(.*?)" protected branches list$/ do |arg1|
|
||||
within "table" do
|
||||
page.should have_content "stable"
|
||||
page.should_not have_content "master"
|
||||
end
|
||||
end
|
||||
|
||||
Given /^project "(.*?)" has protected branches$/ do |arg1|
|
||||
project = Project.find_by_name(arg1)
|
||||
project.protected_branches.create(:name => "stable")
|
||||
end
|
||||
|
|
|
@ -32,15 +32,6 @@ Given /^I visit issue page "(.*?)"$/ do |arg1|
|
|||
visit project_issue_path(issue.project, issue)
|
||||
end
|
||||
|
||||
Given /^I leave a comment like "(.*?)"$/ do |arg1|
|
||||
fill_in "note_note", :with => arg1
|
||||
click_button "Add Comment"
|
||||
end
|
||||
|
||||
Then /^I should see commetn "(.*?)"$/ do |arg1|
|
||||
page.should have_content(arg1)
|
||||
end
|
||||
|
||||
Given /^I submit new issue "(.*?)"$/ do |arg1|
|
||||
fill_in "issue_title", :with => arg1
|
||||
click_button "Submit new issue"
|
||||
|
|
|
@ -50,6 +50,11 @@ Given /^I write new comment "(.*?)"$/ do |arg1|
|
|||
click_button "Add Comment"
|
||||
end
|
||||
|
||||
Given /^I visit project "(.*?)" page$/ do |arg1|
|
||||
project = Project.find_by_name(arg1)
|
||||
visit project_path(project)
|
||||
end
|
||||
|
||||
Given /^I visit project "(.*?)" network page$/ do |arg1|
|
||||
project = Project.find_by_name(arg1)
|
||||
visit graph_project_path(project)
|
||||
|
@ -66,3 +71,12 @@ Given /^page should have network graph$/ do
|
|||
page.should have_content "notes_refacto..."
|
||||
end
|
||||
end
|
||||
|
||||
Given /^I leave a comment like "(.*?)"$/ do |arg1|
|
||||
fill_in "note_note", :with => arg1
|
||||
click_button "Add Comment"
|
||||
end
|
||||
|
||||
Then /^I should see comment "(.*?)"$/ do |arg1|
|
||||
page.should have_content(arg1)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue