Spec: can edit/save note on an order

This commit is contained in:
Jean-Baptiste Bellet
2022-06-30 09:47:46 +02:00
parent 90af6bd22d
commit 576faff3d7

View File

@@ -525,6 +525,17 @@ describe '
expect(page).to have_content test_tracking_number
end
it "can edit note" do
test_note = "this is a note"
expect(page).to_not have_content test_note
find('.edit-note.icon-edit').click
fill_in "note", with: test_note
find('.save-note').click
expect(page).to have_content test_note
end
it "viewing shipping fees" do
shipping_fee = order.shipment_adjustments.first