mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Patching a couple of borked specs
This commit is contained in:
@@ -237,7 +237,9 @@ feature %q{
|
||||
|
||||
visit '/admin/products/bulk_edit'
|
||||
|
||||
find("a", text: "New Product").click
|
||||
#save_screenshot "/Users/willmarshall/Desktop/foo.png"
|
||||
#save_and_open_page
|
||||
find("a", text: "NEW PRODUCT").click
|
||||
|
||||
page.should have_content 'NEW PRODUCT'
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@ describe CheckoutHelper do
|
||||
it "generates html for validated inputs" do
|
||||
helper.should_receive(:render).with(
|
||||
partial: "shared/validated_input",
|
||||
locals: {name: "test", path: "foo", required: true, type: :email}
|
||||
locals: {name: "test", path: "foo",
|
||||
attributes: {:required=>true, :type=>:email, :name=>"foo", :id=>"foo", "ng-model"=>"foo", "ng-class"=>"{error: !fieldValid('foo')}"}}
|
||||
)
|
||||
|
||||
helper.validated_input("test", "foo", type: :email)
|
||||
|
||||
Reference in New Issue
Block a user