Commit 6c404fa9 authored by Valery Sizov's avatar Valery Sizov

Fix dorpdown weight specs according to deefcb19

parent e7cd2b97
...@@ -62,28 +62,28 @@ describe 'Dropdown weight', js: true, feature: true do ...@@ -62,28 +62,28 @@ describe 'Dropdown weight', js: true, feature: true do
click_weight(1) click_weight(1)
expect(page).to have_css(js_dropdown_weight, visible: false) expect(page).to have_css(js_dropdown_weight, visible: false)
expect(filtered_search.value).to eq("weight:1") expect(filtered_search.value).to eq("weight:1 ")
end end
it 'fills in weight 2' do it 'fills in weight 2' do
click_weight(2) click_weight(2)
expect(page).to have_css(js_dropdown_weight, visible: false) expect(page).to have_css(js_dropdown_weight, visible: false)
expect(filtered_search.value).to eq("weight:2") expect(filtered_search.value).to eq("weight:2 ")
end end
it 'fills in weight 3' do it 'fills in weight 3' do
click_weight(3) click_weight(3)
expect(page).to have_css(js_dropdown_weight, visible: false) expect(page).to have_css(js_dropdown_weight, visible: false)
expect(filtered_search.value).to eq("weight:3") expect(filtered_search.value).to eq("weight:3 ")
end end
it 'fills in `no weight`' do it 'fills in `no weight`' do
click_static_weight('No Weight') click_static_weight('No Weight')
expect(page).to have_css(js_dropdown_weight, visible: false) expect(page).to have_css(js_dropdown_weight, visible: false)
expect(filtered_search.value).to eq("weight:none") expect(filtered_search.value).to eq("weight:none ")
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment