aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjpl2017-02-14 19:02:06 +0100
committerjpl2017-02-14 19:02:06 +0100
commit69d29809e998fa319330d435aacdd87c4ffd6c79 (patch)
treeaeeddc754ecb20fa01a5b12fba046f350f9b9040
parent45f250c87b60ae6188229aa7725cc43858cb9b51 (diff)
downloadchouette-core-69d29809e998fa319330d435aacdd87c4ffd6c79.tar.bz2
Refs #2606: updating referential_networks#index
-rw-r--r--app/views/referential_networks/index.html.slim2
-rw-r--r--spec/features/referential_networks_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/referential_networks/index.html.slim b/app/views/referential_networks/index.html.slim
index b9f35f165..2575b4296 100644
--- a/app/views/referential_networks/index.html.slim
+++ b/app/views/referential_networks/index.html.slim
@@ -16,7 +16,7 @@
= f.text_field :name_or_objectid_cont, placeholder: t('.name_or_objectid'), class: 'form-control'
span.input-group-btn
- button.btn.btn-default type="submit"
+ button.btn.btn-default#search_btn type="submit"
span.fa.fa-search
.col-lg-7.col-md-6.col-sm-6.col-xs-4.text-right
diff --git a/spec/features/referential_networks_spec.rb b/spec/features/referential_networks_spec.rb
index 8eb38df4b..d0a9db5f4 100644
--- a/spec/features/referential_networks_spec.rb
+++ b/spec/features/referential_networks_spec.rb
@@ -18,14 +18,14 @@ describe 'ReferentialNetworks', type: :feature do
context 'filtering' do
it 'supports filtering by name' do
fill_in 'q[name_or_objectid_cont]', with: networks.first.name
- click_button 'search-btn'
+ click_button 'search_btn'
expect(page).to have_content(networks.first.name)
expect(page).not_to have_content(networks.last.name)
end
it 'supports filtering by objectid' do
fill_in 'q[name_or_objectid_cont]', with: networks.first.objectid
- click_button 'search-btn'
+ click_button 'search_btn'
expect(page).to have_content(networks.first.name)
expect(page).not_to have_content(networks.last.name)
end