Commit ac6c050773bdd24f63f94dc2f4124778fa604b53
1 parent
46e0e592
Exists in
spb-stable
and in
3 other branches
Fix network tests. Removed console.log
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
3 changed files
with
3 additions
and
4 deletions
Show diff stats
app/assets/javascripts/stat_graph_contributors_graph.js.coffee
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 < 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 < 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 | ... | ... |