From b7a75188d8653b45210d787770e90690ee61b313 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Fri, 30 Jul 2021 17:29:21 +0100 Subject: [PATCH] Simplify checkbox selectors used in checkout specs --- spec/features/consumer/shopping/checkout_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/features/consumer/shopping/checkout_spec.rb b/spec/features/consumer/shopping/checkout_spec.rb index 895ab58424..5c616b7c5f 100644 --- a/spec/features/consumer/shopping/checkout_spec.rb +++ b/spec/features/consumer/shopping/checkout_spec.rb @@ -219,10 +219,10 @@ feature "As a consumer I want to check out my cart", js: true do expect(page).to have_button("Place order now", disabled: true) end - check "Terms of service" + check "accept_terms" expect(page).to have_button("Place order now", disabled: false) - uncheck "Terms of service" + uncheck "accept_terms" expect(page).to have_button("Place order now", disabled: true) end @@ -244,10 +244,10 @@ feature "As a consumer I want to check out my cart", js: true do expect(page).to have_button("Place order now", disabled: false) end - uncheck "Terms of service" + uncheck "accept_terms" expect(page).to have_button("Place order now", disabled: true) - check "Terms of service" + check "accept_terms" expect(page).to have_button("Place order now", disabled: false) end end @@ -279,10 +279,10 @@ feature "As a consumer I want to check out my cart", js: true do end # Both Ts&Cs and TOS appear in the one label for the one checkbox. - check "Terms and Conditions" + check "accept_terms" expect(page).to have_button("Place order now", disabled: false) - uncheck "Terms of service" + uncheck "accept_terms" expect(page).to have_button("Place order now", disabled: true) end end