diff --git a/.travis.yml b/.travis.yml index 3ebca12f..309cd5b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,5 +16,6 @@ before_script: - "bundle exec rake db:create RAILS_ENV=test" - "bundle exec rake db:migrate RAILS_ENV=test" - "bundle exec rake db:seed_fu RAILS_ENV=test" + - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" script: "bundle exec rake gitlab:test" diff --git a/features/projects/network.feature b/features/projects/network.feature index e69de29b..9655184c 100644 --- a/features/projects/network.feature +++ b/features/projects/network.feature @@ -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 + + diff --git a/features/step_definitions/projects_steps.rb b/features/step_definitions/projects_steps.rb index b3bb24b9..9f2799d9 100644 --- a/features/step_definitions/projects_steps.rb +++ b/features/step_definitions/projects_steps.rb @@ -50,3 +50,19 @@ Given /^I write new comment "(.*?)"$/ do |arg1| click_button "Add Comment" 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