Cucumber -> Network graph feature
This commit is contained in:
parent
781fd1a80c
commit
6745a5e5c1
3 changed files with 29 additions and 0 deletions
|
@ -16,5 +16,6 @@ before_script:
|
||||||
- "bundle exec rake db:create RAILS_ENV=test"
|
- "bundle exec rake db:create RAILS_ENV=test"
|
||||||
- "bundle exec rake db:migrate RAILS_ENV=test"
|
- "bundle exec rake db:migrate RAILS_ENV=test"
|
||||||
- "bundle exec rake db:seed_fu RAILS_ENV=test"
|
- "bundle exec rake db:seed_fu RAILS_ENV=test"
|
||||||
|
- "export DISPLAY=:99.0"
|
||||||
- "sh -e /etc/init.d/xvfb start"
|
- "sh -e /etc/init.d/xvfb start"
|
||||||
script: "bundle exec rake gitlab:test"
|
script: "bundle exec rake gitlab:test"
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
@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
|
||||||
|
|
||||||
|
|
|
@ -50,3 +50,19 @@ Given /^I write new comment "(.*?)"$/ do |arg1|
|
||||||
click_button "Add Comment"
|
click_button "Add Comment"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Given /^I visit project "(.*?)" network page$/ do |arg1|
|
||||||
|
project = Project.find_by_name(arg1)
|
||||||
|
visit graph_project_path(project)
|
||||||
|
end
|
||||||
|
|
||||||
|
Given /^show me page$/ do
|
||||||
|
save_and_open_page
|
||||||
|
end
|
||||||
|
|
||||||
|
Given /^page should have network graph$/ do
|
||||||
|
page.should have_content "Project Network Graph"
|
||||||
|
within ".graph" do
|
||||||
|
page.should have_content "stable"
|
||||||
|
page.should have_content "notes_refacto..."
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue