Commit 6745a5e5c1029ed8b226053580583f8eb96c4869
1 parent
781fd1a8
Exists in
master
and in
4 other branches
Cucumber -> Network graph feature
Showing
3 changed files
with
29 additions
and
0 deletions
Show diff stats
.travis.yml
... | ... | @@ -16,5 +16,6 @@ before_script: |
16 | 16 | - "bundle exec rake db:create RAILS_ENV=test" |
17 | 17 | - "bundle exec rake db:migrate RAILS_ENV=test" |
18 | 18 | - "bundle exec rake db:seed_fu RAILS_ENV=test" |
19 | + - "export DISPLAY=:99.0" | |
19 | 20 | - "sh -e /etc/init.d/xvfb start" |
20 | 21 | script: "bundle exec rake gitlab:test" | ... | ... |
features/projects/network.feature
... | ... | @@ -0,0 +1,12 @@ |
1 | +@javascript | |
2 | +Feature: Project Network Graph | |
3 | + | |
4 | + Background: | |
5 | + Given I signin as a user | |
6 | + And I own project "Shop" | |
7 | + And I visit project "Shop" network page | |
8 | + | |
9 | + Scenario: I should see project network | |
10 | + Then page should have network graph | |
11 | + | |
12 | + | ... | ... |
features/step_definitions/projects_steps.rb
... | ... | @@ -50,3 +50,19 @@ Given /^I write new comment "(.*?)"$/ do |arg1| |
50 | 50 | click_button "Add Comment" |
51 | 51 | end |
52 | 52 | |
53 | +Given /^I visit project "(.*?)" network page$/ do |arg1| | |
54 | + project = Project.find_by_name(arg1) | |
55 | + visit graph_project_path(project) | |
56 | +end | |
57 | + | |
58 | +Given /^show me page$/ do | |
59 | + save_and_open_page | |
60 | +end | |
61 | + | |
62 | +Given /^page should have network graph$/ do | |
63 | + page.should have_content "Project Network Graph" | |
64 | + within ".graph" do | |
65 | + page.should have_content "stable" | |
66 | + page.should have_content "notes_refacto..." | |
67 | + end | |
68 | +end | ... | ... |