diff --git a/spec/features/admin/order_spec.rb b/spec/features/admin/order_spec.rb index 88ae2e6753..75ac266554 100644 --- a/spec/features/admin/order_spec.rb +++ b/spec/features/admin/order_spec.rb @@ -144,7 +144,7 @@ feature ' fill_in(:quantity, with: max_quantity + 1) find("a.save-item").click end - find("button.confirm").click + click_button("OK") expect(page).to_not have_content "Loading..." within("tr.stock-item", text: order.products.first.name) do