Expect custom modal instead of alert in order spec

This commit is contained in:
Meron Ogbai
2021-09-09 11:57:56 +03:00
parent 95e294c9ec
commit 4eda15fb71

View File

@@ -144,7 +144,7 @@ feature '
fill_in(:quantity, with: max_quantity + 1)
find("a.save-item").click
end
accept_js_alert
find("button.confirm").click
expect(page).to_not have_content "Loading..."
within("tr.stock-item", text: order.products.first.name) do