Uses trigger.click to click elements outside visible area

This commit is contained in:
filipefurtad0
2021-10-29 12:59:49 +01:00
parent ace761464e
commit a1b094b015

View File

@@ -88,7 +88,7 @@ describe '
end
expect(page).to have_checked_field "enterprise_require_login_false"
expect(page).to have_checked_field "enterprise_allow_guest_orders_true"
choose "Visible to registered customers only"
find(:xpath, '//*[@id="enterprise_require_login_true"]').trigger("click")
expect(page).to have_no_checked_field "enterprise_require_login_false"
# expect(page).to have_checked_field "enterprise_enable_subscriptions_false"