mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
BOM: 'update-pending' class removed when value is init value
This commit is contained in:
@@ -101,6 +101,14 @@ feature %q{
|
||||
fill_in "quantity", :with => 2
|
||||
page.should have_css "input[name='quantity'].update-pending"
|
||||
end
|
||||
|
||||
it "removes the class 'update-pending' from input elements when initial (DB) value is entered" do
|
||||
page.should_not have_css "input[name='quantity'].update-pending"
|
||||
fill_in "quantity", :with => 2
|
||||
page.should have_css "input[name='quantity'].update-pending"
|
||||
fill_in "quantity", :with => 5
|
||||
page.should_not have_css "input[name='quantity'].update-pending"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user