Remove redundant system spec

System specs are expensive. And this spec just looked for the visibility
of certain elements while other tests actually use them and therefore
verify their function much more thoroughly.
This commit is contained in:
Maikel Linke
2023-08-25 13:15:50 +10:00
parent 7414b5cbc9
commit 4be38ba8da

View File

@@ -699,12 +699,6 @@ describe "As a consumer, I want to checkout my order" do
create(:voucher_flat_rate, code: 'some_code', enterprise: distributor, amount: 15)
end
it "shows voucher input" do
visit checkout_step_path(:payment)
expect(page).to have_field "Enter voucher code"
expect(page).to have_content "Apply voucher"
end
describe "adding voucher to the order" do
before do
visit checkout_step_path(:payment)