From bda47d97ee9b4c712988cb2d8708c8289427580d Mon Sep 17 00:00:00 2001 From: Eduardo Date: Mon, 20 Jul 2020 21:08:04 -0300 Subject: [PATCH] add view specs to admin edit page --- spec/views/spree/admin/orders/edit.html.haml_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spec/views/spree/admin/orders/edit.html.haml_spec.rb b/spec/views/spree/admin/orders/edit.html.haml_spec.rb index b33cd187ef..6e099d27c7 100644 --- a/spec/views/spree/admin/orders/edit.html.haml_spec.rb +++ b/spec/views/spree/admin/orders/edit.html.haml_spec.rb @@ -35,4 +35,15 @@ describe "spree/admin/orders/edit.html.haml" do expect(rendered).to have_content("Order Total $36.00") end end + + describe "actions dropwdown" do + it "contains all the actions buttons" do + render + + expect(rendered).to have_content("Resend Confirmation") + expect(rendered).to have_content("Send Invoice") + expect(rendered).to have_content("Print Invoices") + expect(rendered).to have_content("Cancel Order") + end + end end