Commit ac6c050773bdd24f63f94dc2f4124778fa604b53

Authored by Dmitriy Zaporozhets
1 parent 46e0e592

Fix network tests. Removed console.log

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/assets/javascripts/stat_graph_contributors_graph.js.coffee
... ... @@ -84,7 +84,6 @@ class window.ContributorsMasterGraph extends ContributorsGraph
84 84 x(d.date)
85 85 ).y0(@height).y1((d) ->
86 86 xa = d.commits = d.commits ? d.additions ? d.deletions
87   - console.log(xa)
88 87 y(xa)
89 88 ).interpolate("basis")
90 89 create_brush: ->
... ...
app/views/projects/network/_head.html.haml
... ... @@ -2,7 +2,7 @@
2 2 .col-sm-2
3 3 = render partial: 'shared/ref_switcher', locals: {destination: 'graph'}
4 4 .col-sm-10
5   - = form_tag project_network_path(@project, @id), method: :get, class: 'form-inline' do |f|
  5 + = form_tag project_network_path(@project, @id), method: :get, class: 'form-inline network-form' do |f|
6 6 = label_tag :search , "Looking for", class: 'light inline-label'
7 7 = text_field_tag :extended_sha1, @options[:extended_sha1], placeholder: "Input an extended SHA1 syntax", class: "search-input form-control input-mx-250"
8 8 = button_tag type: 'submit', class: 'btn btn-success' do
... ...
features/steps/project/project_network_graph.rb
... ... @@ -70,7 +70,7 @@ class ProjectNetworkGraph &lt; Spinach::FeatureSteps
70 70 end
71 71  
72 72 When 'I looking for a commit by SHA of "v2.1.0"' do
73   - within ".content .search" do
  73 + within ".network-form" do
74 74 fill_in 'extended_sha1', with: '98d6492'
75 75 find('button').click
76 76 end
... ... @@ -84,7 +84,7 @@ class ProjectNetworkGraph &lt; Spinach::FeatureSteps
84 84 end
85 85  
86 86 When 'I look for a commit by ";"' do
87   - within ".content .search" do
  87 + within ".network-form" do
88 88 fill_in 'extended_sha1', with: ';'
89 89 find('button').click
90 90 end
... ...