aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/lines_spec.rb
diff options
context:
space:
mode:
authorjpl2017-03-02 15:02:25 +0100
committerjpl2017-03-02 15:02:25 +0100
commit1238523513a6699bfdbb7bc1baf63044ed3aab9e (patch)
tree722600bb3af098f5dcb6ac17693da5f520aed282 /spec/features/lines_spec.rb
parent3db14baba4d7b2980c6802a746c2e01c2693119b (diff)
downloadchouette-core-1238523513a6699bfdbb7bc1baf63044ed3aab9e.tar.bz2
Refs #2704: updating filter/search bars, beginning with workbenches#show
Diffstat (limited to 'spec/features/lines_spec.rb')
-rw-r--r--spec/features/lines_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/lines_spec.rb b/spec/features/lines_spec.rb
index 4ecefab33..f15d33f60 100644
--- a/spec/features/lines_spec.rb
+++ b/spec/features/lines_spec.rb
@@ -28,21 +28,21 @@ describe "Lines", :type => :feature do
context 'filtering' do
it 'supports filtering by name' do
- fill_in 'q[name_or_number_or_objectid_cont]', with: lines.first.name
+ fill_in 'q[name_or_objectid_cont]', with: lines.first.name
click_button 'search-btn'
expect(page).to have_content(lines.first.name)
expect(page).not_to have_content(lines.last.name)
end
it 'supports filtering by number' do
- fill_in 'q[name_or_number_or_objectid_cont]', with: lines.first.number
+ fill_in 'q[name_or_objectid_cont]', with: lines.first.number
click_button 'search-btn'
expect(page).to have_content(lines.first.name)
expect(page).not_to have_content(lines.last.name)
end
it 'supports filtering by objectid' do
- fill_in 'q[name_or_number_or_objectid_cont]', with: lines.first.objectid
+ fill_in 'q[name_or_objectid_cont]', with: lines.first.objectid
click_button 'search-btn'
expect(page).to have_content(lines.first.name)
expect(page).not_to have_content(lines.last.name)