mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix navigation problem in spec
This commit is contained in:
@@ -5,8 +5,6 @@ feature 'Account and Billing Settings' do
|
||||
include WebHelper
|
||||
|
||||
describe "updating" do
|
||||
let!(:admin) { create(:admin_user) }
|
||||
|
||||
before do
|
||||
Spree::Config.set(
|
||||
products_require_tax_category: false,
|
||||
@@ -15,13 +13,9 @@ feature 'Account and Billing Settings' do
|
||||
)
|
||||
end
|
||||
|
||||
before do
|
||||
login_as_admin
|
||||
end
|
||||
|
||||
context "as an admin user" do
|
||||
it "loads the page" do
|
||||
click_link "Configuration"
|
||||
login_as_admin_and_visit spree.edit_admin_general_settings_path
|
||||
click_link "Tax Settings"
|
||||
|
||||
expect(page).to have_unchecked_field 'preferences_products_require_tax_category'
|
||||
@@ -30,7 +24,7 @@ feature 'Account and Billing Settings' do
|
||||
end
|
||||
|
||||
it "attributes can be changed" do
|
||||
visit spree.edit_admin_tax_settings_path
|
||||
login_as_admin_and_visit spree.edit_admin_tax_settings_path
|
||||
|
||||
check 'preferences_products_require_tax_category'
|
||||
check 'preferences_shipment_inc_vat'
|
||||
|
||||
Reference in New Issue
Block a user