solidus_backend 2.7.4 → 2.9.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of solidus_backend might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +12 -8
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/javascripts/spree/backend.js +0 -2
- data/app/assets/javascripts/spree/backend/adjustments.js +1 -1
- data/app/assets/javascripts/spree/backend/components/sortable_table.js +1 -0
- data/app/assets/javascripts/spree/backend/components/tabs.js +1 -0
- data/app/assets/javascripts/spree/backend/components/tooltips.js +21 -17
- data/app/assets/javascripts/spree/backend/option_type_autocomplete.js +1 -1
- data/app/assets/javascripts/spree/backend/product_picker.js +1 -1
- data/app/assets/javascripts/spree/backend/shipments.js +7 -1
- data/app/assets/javascripts/spree/backend/stock_management.js +18 -0
- data/app/assets/javascripts/spree/backend/store_credits.js +18 -2
- data/app/assets/javascripts/spree/backend/taxons.js +1 -1
- data/app/assets/javascripts/spree/backend/templates/orders/line_item.hbs +1 -1
- data/app/assets/javascripts/spree/backend/templates/stock_items/stock_location_stock_item.hbs +24 -25
- data/app/assets/javascripts/spree/backend/user_picker.js +1 -1
- data/app/assets/javascripts/spree/backend/variant_autocomplete.js +1 -1
- data/app/assets/javascripts/spree/backend/views/order/customer_select.js +1 -1
- data/app/assets/javascripts/spree/backend/views/order/summary.js +2 -2
- data/app/assets/javascripts/spree/backend/views/stock/add_stock_item.js +15 -4
- data/app/assets/javascripts/spree/backend/views/stock/edit_stock_item_row.js +46 -10
- data/app/assets/stylesheets/spree/backend/_bootstrap_custom.scss +24 -16
- data/app/assets/stylesheets/spree/backend/components/_breadcrumb.scss +12 -0
- data/app/assets/stylesheets/spree/backend/components/_buttons.scss +18 -0
- data/app/assets/stylesheets/spree/backend/components/_image_placeholder.scss +2 -2
- data/app/assets/stylesheets/spree/backend/components/_list_group.scss +2 -2
- data/app/assets/stylesheets/spree/backend/components/_messages.scss +20 -12
- data/app/assets/stylesheets/spree/backend/components/_navigation.scss +45 -11
- data/app/assets/stylesheets/spree/backend/components/_progress.scss +3 -3
- data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +1 -2
- data/app/assets/stylesheets/spree/backend/components/_tabs.scss +14 -13
- data/app/assets/stylesheets/spree/backend/globals/_deprecated_variables.scss +24 -0
- data/app/assets/stylesheets/spree/backend/globals/_deprecation.scss +10 -1
- data/app/assets/stylesheets/spree/backend/globals/_functions.scss +2 -0
- data/app/assets/stylesheets/spree/backend/globals/_variables.scss +88 -57
- data/app/assets/stylesheets/spree/backend/globals/_variables_override.scss +1 -0
- data/app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss +1 -1
- data/app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss +1 -1
- data/app/assets/stylesheets/spree/backend/sections/_log_entries.scss +8 -2
- data/app/assets/stylesheets/spree/backend/sections/_orders.scss +25 -6
- data/app/assets/stylesheets/spree/backend/sections/_products.scss +3 -1
- data/app/assets/stylesheets/spree/backend/sections/_promotions.scss +5 -5
- data/app/assets/stylesheets/spree/backend/sections/_stock_management.scss +77 -2
- data/app/assets/stylesheets/spree/backend/sections/_style_guide.scss +4 -4
- data/app/assets/stylesheets/spree/backend/sections/_taxonomies.scss +1 -1
- data/app/assets/stylesheets/spree/backend/shared/_fonts.scss +15 -0
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +27 -7
- data/app/assets/stylesheets/spree/backend/shared/_header.scss +2 -2
- data/app/assets/stylesheets/spree/backend/shared/_icons.scss +5 -1
- data/app/assets/stylesheets/spree/backend/shared/_layout.scss +5 -4
- data/app/assets/stylesheets/spree/backend/shared/_tables.scss +11 -6
- data/app/assets/stylesheets/spree/backend/shared/_typography.scss +10 -6
- data/app/assets/stylesheets/spree/backend/spree_admin.scss +3 -1
- data/app/controllers/spree/admin/cancellations_controller.rb +2 -2
- data/app/controllers/spree/admin/customer_returns_controller.rb +8 -1
- data/app/controllers/spree/admin/locale_controller.rb +1 -1
- data/app/controllers/spree/admin/log_entries_controller.rb +3 -0
- data/app/controllers/spree/admin/orders/customer_details_controller.rb +8 -1
- data/app/controllers/spree/admin/orders_controller.rb +1 -12
- data/app/controllers/spree/admin/products_controller.rb +10 -6
- data/app/controllers/spree/admin/promotion_codes_controller.rb +19 -1
- data/app/controllers/spree/admin/promotions_controller.rb +1 -1
- data/app/controllers/spree/admin/reimbursements_controller.rb +7 -2
- data/app/controllers/spree/admin/resource_controller.rb +1 -0
- data/app/controllers/spree/admin/store_credit_reasons_controller.rb +8 -0
- data/app/controllers/spree/admin/store_credits_controller.rb +11 -11
- data/app/controllers/spree/admin/users_controller.rb +4 -2
- data/app/helpers/spree/admin/base_helper.rb +9 -3
- data/app/helpers/spree/admin/navigation_helper.rb +1 -1
- data/app/helpers/spree/admin/promotions_helper.rb +15 -0
- data/app/models/spree/backend_configuration.rb +38 -21
- data/app/views/spree/admin/cancellations/index.html.erb +3 -1
- data/app/views/spree/admin/images/_image_row.html.erb +1 -1
- data/app/views/spree/admin/images/edit.html.erb +3 -3
- data/app/views/spree/admin/images/index.html.erb +3 -3
- data/app/views/spree/admin/log_entries/index.html.erb +1 -19
- data/app/views/spree/admin/option_types/edit.html.erb +1 -1
- data/app/views/spree/admin/orders/_carton_manifest.html.erb +3 -1
- data/app/views/spree/admin/orders/_line_items_edit_form.html.erb +1 -1
- data/app/views/spree/admin/orders/_shipment_manifest.html.erb +3 -1
- data/app/views/spree/admin/orders/confirm/_line_items.html.erb +3 -2
- data/app/views/spree/admin/orders/confirm/_shipment_manifest.html.erb +3 -1
- data/app/views/spree/admin/orders/index.html.erb +1 -1
- data/app/views/spree/admin/payments/_capture_events.html.erb +15 -18
- data/app/views/spree/admin/payments/_list.html.erb +1 -1
- data/app/views/spree/admin/payments/_log_entries.html.erb +29 -0
- data/app/views/spree/admin/payments/show.html.erb +13 -6
- data/app/views/spree/admin/payments/source_forms/{_storecredit.html.erb → _store_credit.html.erb} +0 -0
- data/app/views/spree/admin/payments/source_views/{_storecredit.html.erb → _store_credit.html.erb} +0 -0
- data/app/views/spree/admin/prices/_form.html.erb +1 -1
- data/app/views/spree/admin/product_properties/index.html.erb +1 -1
- data/app/views/spree/admin/products/_form.html.erb +23 -12
- data/app/views/spree/admin/products/edit.html.erb +5 -0
- data/app/views/spree/admin/products/index.html.erb +3 -1
- data/app/views/spree/admin/promotion_categories/index.html.erb +1 -1
- data/app/views/spree/admin/promotion_code_batches/index.html.erb +1 -1
- data/app/views/spree/admin/promotion_codes/index.html.erb +5 -1
- data/app/views/spree/admin/promotion_codes/new.html.erb +31 -0
- data/app/views/spree/admin/promotions/_actions.html.erb +1 -1
- data/app/views/spree/admin/promotions/_activations_edit.html.erb +1 -1
- data/app/views/spree/admin/promotions/_form.html.erb +6 -5
- data/app/views/spree/admin/promotions/_rules.html.erb +1 -1
- data/app/views/spree/admin/promotions/edit.html.erb +3 -1
- data/app/views/spree/admin/promotions/index.html.erb +4 -4
- data/app/views/spree/admin/refunds/new.html.erb +1 -1
- data/app/views/spree/admin/reimbursements/edit.html.erb +2 -2
- data/app/views/spree/admin/shared/_address_form.html.erb +10 -3
- data/app/views/spree/admin/shared/_edit_resource_links.html.erb +1 -1
- data/app/views/spree/admin/shared/_head.html.erb +1 -3
- data/app/views/spree/admin/shared/_image.html.erb +2 -2
- data/app/views/spree/admin/shared/_modal.html.erb +1 -1
- data/app/views/spree/admin/shared/_product_sub_menu.html.erb +1 -1
- data/app/views/spree/admin/shared/_settings_checkout_tabs.html.erb +4 -0
- data/app/views/spree/admin/shared/_settings_sub_menu.html.erb +3 -3
- data/app/views/spree/admin/shared/_tabs.html.erb +3 -2
- data/app/views/spree/admin/shared/_variant_search.html.erb +1 -1
- data/app/views/spree/admin/shipping_methods/_form.html.erb +10 -10
- data/app/views/spree/admin/stock_items/_stock_management.html.erb +56 -38
- data/app/views/spree/admin/stock_locations/_form.html.erb +133 -121
- data/app/views/spree/admin/stock_locations/edit.html.erb +4 -2
- data/app/views/spree/admin/store_credit_reasons/edit.html.erb +15 -0
- data/app/views/spree/admin/store_credit_reasons/index.html.erb +56 -0
- data/app/views/spree/admin/store_credit_reasons/new.html.erb +18 -0
- data/app/views/spree/admin/store_credit_reasons/shared/_form.html.erb +15 -0
- data/app/views/spree/admin/store_credits/_store_credit_reason_field.html.erb +7 -0
- data/app/views/spree/admin/store_credits/edit_amount.html.erb +1 -1
- data/app/views/spree/admin/store_credits/edit_validity.html.erb +2 -2
- data/app/views/spree/admin/store_credits/index.html.erb +1 -1
- data/app/views/spree/admin/store_credits/show.html.erb +3 -3
- data/app/views/spree/admin/stores/_form.html.erb +1 -0
- data/app/views/spree/admin/style_guide/topics/typography/_colors.html.erb +30 -20
- data/app/views/spree/admin/style_guide/topics/typography/_fonts.html.erb +1 -1
- data/app/views/spree/admin/taxonomies/edit.html.erb +1 -1
- data/app/views/spree/admin/taxons/_form.html.erb +1 -1
- data/app/views/spree/admin/taxons/edit.html.erb +2 -2
- data/app/views/spree/admin/users/edit.html.erb +2 -2
- data/app/views/spree/admin/users/index.html.erb +2 -2
- data/app/views/spree/admin/users/items.html.erb +3 -1
- data/app/views/spree/admin/users/orders.html.erb +1 -1
- data/app/views/spree/admin/variants/_form.html.erb +1 -1
- data/app/views/spree/admin/variants/index.html.erb +1 -1
- data/app/views/spree/admin/zones/_state_members.html.erb +1 -1
- data/config/routes.rb +2 -8
- data/lib/spree/backend.rb +1 -1
- data/solidus_backend.gemspec +3 -4
- data/spec/controllers/spree/admin/base_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/cancellations_controller_spec.rb +7 -3
- data/spec/controllers/spree/admin/locale_controller_spec.rb +45 -0
- data/spec/controllers/spree/admin/orders/customer_details_controller_spec.rb +50 -2
- data/spec/controllers/spree/admin/orders_controller_spec.rb +25 -13
- data/spec/controllers/spree/admin/payments_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/products_controller_spec.rb +72 -0
- data/spec/controllers/spree/admin/promotion_codes_controller_spec.rb +13 -1
- data/spec/controllers/spree/admin/reimbursements_controller_spec.rb +11 -0
- data/spec/controllers/spree/admin/resource_controller_spec.rb +22 -0
- data/spec/controllers/spree/admin/stock_items_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/stock_locations_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/store_credits_controller_spec.rb +7 -7
- data/spec/features/admin/configuration/payment_methods_spec.rb +2 -2
- data/spec/features/admin/configuration/shipping_methods_spec.rb +2 -2
- data/spec/features/admin/homepage_spec.rb +1 -6
- data/spec/features/admin/locale_spec.rb +1 -2
- data/spec/features/admin/orders/adjustments_spec.rb +1 -1
- data/spec/features/admin/orders/customer_details_spec.rb +5 -7
- data/spec/features/admin/orders/customer_returns_spec.rb +28 -0
- data/spec/features/admin/orders/listing_spec.rb +2 -7
- data/spec/features/admin/orders/log_entries_spec.rb +2 -2
- data/spec/features/admin/orders/new_order_spec.rb +117 -0
- data/spec/features/admin/orders/new_refund_spec.rb +35 -0
- data/spec/features/admin/orders/order_details_spec.rb +10 -5
- data/spec/features/admin/orders/payments_spec.rb +82 -41
- data/spec/features/admin/orders/return_payment_state_spec.rb +3 -0
- data/spec/features/admin/orders/shipments_spec.rb +28 -0
- data/spec/features/admin/products/edit/products_spec.rb +25 -0
- data/spec/features/admin/products/edit/taxons_spec.rb +4 -0
- data/spec/features/admin/products/pricing_spec.rb +24 -6
- data/spec/features/admin/products/products_spec.rb +5 -5
- data/spec/features/admin/products/stock_management_spec.rb +27 -13
- data/spec/features/admin/products/variant_spec.rb +1 -1
- data/spec/features/admin/promotion_adjustments_spec.rb +12 -12
- data/spec/features/admin/promotions/option_value_rule_spec.rb +2 -2
- data/spec/features/admin/promotions/product_rule_spec.rb +1 -1
- data/spec/features/admin/promotions/promotion_spec.rb +52 -0
- data/spec/features/admin/promotions/tiered_calculator_spec.rb +1 -1
- data/spec/features/admin/promotions/user_rule_spec.rb +2 -2
- data/spec/features/admin/reimbursements_spec.rb +1 -1
- data/spec/features/admin/store_credits_spec.rb +51 -2
- data/spec/features/admin/taxons_spec.rb +35 -0
- data/spec/features/admin/users_spec.rb +44 -11
- data/spec/helpers/admin/navigation_helper_spec.rb +4 -2
- data/spec/helpers/admin/store_credit_events_helper_spec.rb +2 -2
- data/spec/javascripts/spec_helper.js +2 -0
- data/spec/models/spree/backend_configuration/menu_item_spec.rb +17 -0
- data/spec/models/spree/backend_configuration_spec.rb +22 -0
- data/spec/spec_helper.rb +2 -2
- data/spec/support/appear_before_matcher.rb +1 -1
- data/spec/support/feature/order_feature_helper.rb +1 -1
- data/spec/views/spree/admin/shared/navigation_footer_spec.rb +1 -1
- data/vendor/assets/fonts/inter/Inter-Regular.woff +0 -0
- data/vendor/assets/fonts/inter/Inter-Regular.woff2 +0 -0
- data/vendor/assets/fonts/inter/Inter-SemiBold.woff +0 -0
- data/vendor/assets/fonts/inter/Inter-SemiBold.woff2 +0 -0
- data/vendor/assets/javascripts/solidus_admin/select2_locales/select2_locale_en-US.js +10 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_pagination.scss +4 -0
- metadata +38 -36
- data/.eslintrc +0 -21
- data/app/controllers/spree/admin/reports_controller.rb +0 -82
- data/app/views/spree/admin/reports/index.html.erb +0 -19
- data/app/views/spree/admin/reports/sales_total.html.erb +0 -35
- data/app/views/spree/admin/shared/_report_order_criteria.html.erb +0 -19
- data/app/views/spree/admin/store_credits/_update_reason_field.html.erb +0 -7
- data/spec/controllers/spree/admin/reports_controller_spec.rb +0 -133
- data/spec/features/admin/reports_spec.rb +0 -63
@@ -11,7 +11,7 @@ describe 'Promotions', type: :feature do
|
|
11
11
|
expect(page).to have_css('table thead tr th', text: 'Product')
|
12
12
|
expect(page).to have_css('table thead tr th', text: 'Preferred Reimbursement Type')
|
13
13
|
expect(page).to have_css('table thead tr th', text: 'Reimbursement Type Override')
|
14
|
-
expect(page).to have_css('table thead tr th', text: 'Exchange
|
14
|
+
expect(page).to have_css('table thead tr th', text: 'Exchange For')
|
15
15
|
expect(page).to have_css('table thead tr th', text: 'Amount Before Sales Tax')
|
16
16
|
expect(page).to have_css('table thead tr th', text: 'Total')
|
17
17
|
end
|
@@ -56,9 +56,58 @@ describe "Store credits admin" do
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
+
describe "displaying a store credit details page" do
|
60
|
+
before do
|
61
|
+
visit spree.admin_path
|
62
|
+
click_link "Users"
|
63
|
+
click_link store_credit.user.email
|
64
|
+
click_link "Store Credit"
|
65
|
+
page.find(".sc-table td.actions a.fa-edit").click
|
66
|
+
end
|
67
|
+
|
68
|
+
it "shows the store credit's information" do
|
69
|
+
within ".content" do
|
70
|
+
expect(page).to have_content "Credited #{store_credit.display_amount}"
|
71
|
+
expect(page).to have_content "Created By #{store_credit.created_by.email}"
|
72
|
+
expect(page).to have_content "Type #{store_credit.category_name}"
|
73
|
+
expect(page).to have_content 'Store credit history'
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
it "lets edit store credit's memo", js: true do
|
78
|
+
allow_any_instance_of(Spree::Admin::StoreCreditsController)
|
79
|
+
.to receive(:try_spree_current_user)
|
80
|
+
.and_return(admin_user)
|
81
|
+
|
82
|
+
# When there are no errors
|
83
|
+
within '.store-credit-memo-row' do
|
84
|
+
click_button 'Edit'
|
85
|
+
fill_in 'store_credit_memo', with: 'Lottery Won'
|
86
|
+
click_button 'Save'
|
87
|
+
expect(page).to have_content "Memo Lottery Won", normalize_ws: true
|
88
|
+
end
|
89
|
+
expect(page).to have_content "Store Credit has been successfully updated!"
|
90
|
+
|
91
|
+
# When there are errors
|
92
|
+
allow_any_instance_of(Spree::StoreCredit).to receive(:save) { false }
|
93
|
+
allow_any_instance_of(Spree::StoreCredit)
|
94
|
+
.to receive_message_chain(:errors, :full_messages)
|
95
|
+
.and_return(["Memo is not valid"])
|
96
|
+
|
97
|
+
within '.store-credit-memo-row' do
|
98
|
+
find(:css, ".edit-memo").click
|
99
|
+
fill_in 'store_credit_memo', with: 'Lottery Won Twice'
|
100
|
+
find(:css, ".save-memo").click
|
101
|
+
expect(page).to have_content "Memo Lottery Won", normalize_ws: true
|
102
|
+
expect(page).not_to have_content "Lottery Won Twice"
|
103
|
+
end
|
104
|
+
expect(page).to have_content "Unable to update store credit [\"Memo is not valid\"]"
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
59
108
|
describe "updating store credit" do
|
60
109
|
let(:updated_amount) { "99.0" }
|
61
|
-
let!(:
|
110
|
+
let!(:store_credit_reason) { create(:store_credit_reason) }
|
62
111
|
|
63
112
|
before do
|
64
113
|
visit spree.admin_path
|
@@ -74,7 +123,7 @@ describe "Store credits admin" do
|
|
74
123
|
click_link "Change amount"
|
75
124
|
expect(page).to have_content 'Editing store credit amount'
|
76
125
|
page.fill_in 'store_credit_amount', with: updated_amount
|
77
|
-
page.select
|
126
|
+
page.select store_credit_reason.name, from: 'store_credit_reason_id'
|
78
127
|
click_button "Update"
|
79
128
|
expect(page.find('#sc-detail-table')).to have_content "$99.00"
|
80
129
|
expect(store_credit.reload.amount.to_f).to eq updated_amount.to_f
|
@@ -40,4 +40,39 @@ describe "Taxonomies and taxons", type: :feature do
|
|
40
40
|
|
41
41
|
expect(page).to have_current_path %r{/admin/taxonomies/\d+/taxons/\d+/edit}
|
42
42
|
end
|
43
|
+
|
44
|
+
context "inside sidebar menu" do
|
45
|
+
def only_one_selected_tab_inside?(sub_tab_selector, tab_name, tab_path)
|
46
|
+
within(sub_tab_selector) do
|
47
|
+
expect(page).to have_selector('.selected', count: 1)
|
48
|
+
|
49
|
+
within('.selected') { expect(page).to have_link(tab_name, href: tab_path) }
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
context "on display taxonomies page", js: true do
|
54
|
+
it "should be selected only one tab 'Taxonomies' in product sub tabs" do
|
55
|
+
visit spree.admin_taxonomies_path
|
56
|
+
only_one_selected_tab_inside?('[data-hook=admin_product_sub_tabs]', 'Taxonomies', spree.admin_taxonomies_path)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
context "on edit taxonomy page", js: true do
|
61
|
+
it "should be selected only one tab 'Taxonomies' in product sub tabs" do
|
62
|
+
taxonomy = create :taxonomy
|
63
|
+
|
64
|
+
visit spree.edit_admin_taxonomy_path(taxonomy)
|
65
|
+
only_one_selected_tab_inside?('[data-hook=admin_product_sub_tabs]', 'Taxonomies', spree.admin_taxonomies_path)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
context "on edit taxonomy's taxon page", js: true do
|
70
|
+
it "should be selected only one tab 'Taxonomies' in product sub tabs" do
|
71
|
+
taxonomy = create :taxonomy
|
72
|
+
|
73
|
+
visit spree.edit_admin_taxonomy_taxon_path(taxonomy, taxonomy.root.id)
|
74
|
+
only_one_selected_tab_inside?('[data-hook=admin_product_sub_tabs]', 'Taxonomies', spree.admin_taxonomies_path)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
43
78
|
end
|
@@ -16,6 +16,7 @@ describe 'Users', type: :feature do
|
|
16
16
|
create(:completed_order_with_totals, user: user_a, number: "R456").tap do |o|
|
17
17
|
li = o.line_items.last
|
18
18
|
li.update_column(:price, li.price + 10)
|
19
|
+
o.recalculate
|
19
20
|
end
|
20
21
|
end
|
21
22
|
|
@@ -37,7 +38,7 @@ describe 'Users', type: :feature do
|
|
37
38
|
end
|
38
39
|
|
39
40
|
it 'can go back to the users list' do
|
40
|
-
expect(page).to have_link Spree::LegacyUser.model_name.human(count:
|
41
|
+
expect(page).to have_link Spree::LegacyUser.model_name.human(count: Spree::I18N_GENERIC_PLURAL), href: spree.admin_users_path
|
41
42
|
end
|
42
43
|
|
43
44
|
it 'can navigate to the account page' do
|
@@ -58,6 +59,7 @@ describe 'Users', type: :feature do
|
|
58
59
|
|
59
60
|
it "can sort asc" do
|
60
61
|
within_table(table_id) do
|
62
|
+
expect(page).to have_selector '.sort_link.asc'
|
61
63
|
expect(page).to have_text text_match_1
|
62
64
|
expect(page).to have_text text_match_2
|
63
65
|
expect(text_match_1).to appear_before text_match_2
|
@@ -68,7 +70,10 @@ describe 'Users', type: :feature do
|
|
68
70
|
within_table(table_id) do
|
69
71
|
# Ransack adds a ▲ to the sort link. With exact match Capybara is not able to find that link
|
70
72
|
click_link sort_link, exact: false
|
73
|
+
end
|
71
74
|
|
75
|
+
within_table(table_id) do
|
76
|
+
expect(page).to have_selector '.sort_link.desc'
|
72
77
|
expect(page).to have_text text_match_1
|
73
78
|
expect(page).to have_text text_match_2
|
74
79
|
expect(text_match_2).to appear_before text_match_1
|
@@ -284,6 +289,24 @@ describe 'Users', type: :feature do
|
|
284
289
|
end
|
285
290
|
end
|
286
291
|
|
292
|
+
context 'deleting users' do
|
293
|
+
let!(:an_user) { create(:user_with_addresses, email: 'an_user@example.com') }
|
294
|
+
let!(:order) { create(:completed_order_with_totals, user_id: an_user.id) }
|
295
|
+
|
296
|
+
context 'if an user has placed orders' do
|
297
|
+
before do
|
298
|
+
visit spree.admin_path
|
299
|
+
click_link 'Users'
|
300
|
+
end
|
301
|
+
|
302
|
+
it "can't be deleted" do
|
303
|
+
within "#spree_user_#{an_user.id}" do
|
304
|
+
expect(page).not_to have_selector('.fa-trash')
|
305
|
+
end
|
306
|
+
end
|
307
|
+
end
|
308
|
+
end
|
309
|
+
|
287
310
|
context 'order history with sorting' do
|
288
311
|
before do
|
289
312
|
orders
|
@@ -302,14 +325,24 @@ describe 'Users', type: :feature do
|
|
302
325
|
end
|
303
326
|
end
|
304
327
|
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
328
|
+
context :number do
|
329
|
+
it_behaves_like "a sortable attribute" do
|
330
|
+
let(:text_match_1) { order.number }
|
331
|
+
let(:text_match_2) { order_2.number }
|
332
|
+
let(:table_id) { "listing_orders" }
|
333
|
+
let(:sort_link) { "orders_number_title" }
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
337
|
+
context :total do
|
338
|
+
it_behaves_like "a sortable attribute" do
|
339
|
+
# Since Spree::Money renders each piece of the total in it's own span,
|
340
|
+
# we are just checking the dollar total matches. Mainly due to how
|
341
|
+
# RSpec matcher appear_before works since it can't index the broken up total.
|
342
|
+
let(:text_match_1) { order.total.to_i.to_s }
|
343
|
+
let(:text_match_2) { order_2.total.to_i.to_s }
|
344
|
+
let(:table_id) { "listing_orders" }
|
345
|
+
let(:sort_link) { "orders_total_title" }
|
313
346
|
end
|
314
347
|
end
|
315
348
|
|
@@ -359,9 +392,9 @@ describe 'Users', type: :feature do
|
|
359
392
|
within_table('listing_items') do
|
360
393
|
items.each do |item|
|
361
394
|
expect(page).to have_selector(".item-name", text: item.product.name)
|
362
|
-
expect(page).to have_selector(".item-price", text: item.single_money.to_html)
|
395
|
+
expect(page).to have_selector(".item-price", text: item.single_money.to_html(html_wrap: false))
|
363
396
|
expect(page).to have_selector(".item-quantity", text: item.quantity)
|
364
|
-
expect(page).to have_selector(".item-total", text: item.money.to_html)
|
397
|
+
expect(page).to have_selector(".item-total", text: item.money.to_html(html_wrap: false))
|
365
398
|
end
|
366
399
|
end
|
367
400
|
end
|
@@ -83,8 +83,10 @@ describe Spree::Admin::NavigationHelper, type: :helper do
|
|
83
83
|
# object_url is provided by the ResourceController abstract controller.
|
84
84
|
# as we cannot set a custom controller for helper tests, we need to fake it
|
85
85
|
before do
|
86
|
-
|
87
|
-
|
86
|
+
without_partial_double_verification do
|
87
|
+
allow(helper).to receive(:object_url) do |o|
|
88
|
+
"/stock_items/#{o.to_param}"
|
89
|
+
end
|
88
90
|
end
|
89
91
|
end
|
90
92
|
|
@@ -87,10 +87,10 @@ describe Spree::Admin::StoreCreditEventsHelper, type: :helper do
|
|
87
87
|
end
|
88
88
|
|
89
89
|
context "originator is not specifically handled" do
|
90
|
-
let(:originator) { create(:
|
90
|
+
let(:originator) { create(:store_credit) }
|
91
91
|
|
92
92
|
it "raises an error" do
|
93
|
-
expect { subject }.to raise_error(RuntimeError, "Unexpected originator type Spree::
|
93
|
+
expect { subject }.to raise_error(RuntimeError, "Unexpected originator type Spree::StoreCredit")
|
94
94
|
end
|
95
95
|
end
|
96
96
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe Spree::BackendConfiguration::MenuItem do
|
6
|
+
describe '#match_path' do
|
7
|
+
subject do
|
8
|
+
described_class.new([], nil, {
|
9
|
+
match_path: '/stock_items'
|
10
|
+
}).match_path
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'can be read' do
|
14
|
+
is_expected.to eq('/stock_items')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe Spree::BackendConfiguration do
|
6
|
+
describe '#menu_items' do
|
7
|
+
subject do
|
8
|
+
described_class.new.menu_items
|
9
|
+
end
|
10
|
+
|
11
|
+
describe 'menu tab for stock items' do
|
12
|
+
let(:stock_menu_item) do
|
13
|
+
subject.detect { |item| item.label == :stock }
|
14
|
+
end
|
15
|
+
|
16
|
+
# Regression for https://github.com/solidusio/solidus/issues/2950
|
17
|
+
it 'has match_path set to /stock_items' do
|
18
|
+
expect(stock_menu_item.match_path).to eq('/stock_items')
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -27,6 +27,7 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
27
27
|
require 'database_cleaner'
|
28
28
|
require 'with_model'
|
29
29
|
|
30
|
+
require 'spree/testing_support/partial_double_verification'
|
30
31
|
require 'spree/testing_support/authorization_helpers'
|
31
32
|
require 'spree/testing_support/factories'
|
32
33
|
require 'spree/testing_support/preferences'
|
@@ -46,7 +47,7 @@ Capybara.register_driver :selenium_chrome_headless do |app|
|
|
46
47
|
browser_options = ::Selenium::WebDriver::Chrome::Options.new
|
47
48
|
browser_options.args << '--headless'
|
48
49
|
browser_options.args << '--disable-gpu'
|
49
|
-
browser_options.args << '--window-size=
|
50
|
+
browser_options.args << '--window-size=1920,1080'
|
50
51
|
Capybara::Selenium::Driver.new(app, browser: :chrome, options: browser_options)
|
51
52
|
end
|
52
53
|
|
@@ -88,7 +89,6 @@ RSpec.configure do |config|
|
|
88
89
|
|
89
90
|
config.before do
|
90
91
|
Rails.cache.clear
|
91
|
-
reset_spree_preferences
|
92
92
|
if RSpec.current_example.metadata[:js] && page.driver.browser.respond_to?(:url_blacklist)
|
93
93
|
page.driver.browser.url_blacklist = ['http://fonts.googleapis.com']
|
94
94
|
end
|
@@ -5,6 +5,6 @@ require 'rspec/expectations'
|
|
5
5
|
RSpec::Matchers.define :appear_before do |expected|
|
6
6
|
match do |actual|
|
7
7
|
raise "Page instance required to use the appear_before matcher" unless page
|
8
|
-
|
8
|
+
has_text? /#{actual}.*#{expected}/
|
9
9
|
end
|
10
10
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
describe "spree/admin/shared/_navigation_footer", type: :view do
|
5
|
+
describe "spree/admin/shared/_navigation_footer", type: :view, partial_double_verification: false do
|
6
6
|
let(:user) { FactoryBot.build_stubbed(:admin_user) }
|
7
7
|
let(:ability) { Object.new.extend(CanCan::Ability) }
|
8
8
|
before do
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_api
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.9.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.9.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: solidus_core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.9.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.9.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: coffee-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '2.
|
75
|
+
version: '2.8'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '2.
|
82
|
+
version: '2.8'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: jquery-rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '1.1'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: sassc-rails
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -123,33 +123,19 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: autoprefixer-rails
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: '0'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: autoprefixer-rails
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '7.1'
|
146
|
-
type: :runtime
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '7.1'
|
138
|
+
version: '0'
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: handlebars_assets
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,10 +156,10 @@ executables: []
|
|
170
156
|
extensions: []
|
171
157
|
extra_rdoc_files: []
|
172
158
|
files:
|
173
|
-
- ".eslintrc"
|
174
159
|
- README.md
|
175
160
|
- Rakefile
|
176
161
|
- app/assets/config/solidus_backend_manifest.js
|
162
|
+
- app/assets/images/favicon.ico
|
177
163
|
- app/assets/images/solidus-style-guide-logo.png
|
178
164
|
- app/assets/javascripts/spree/backend.js
|
179
165
|
- app/assets/javascripts/spree/backend/addresses.js
|
@@ -286,6 +272,7 @@ files:
|
|
286
272
|
- app/assets/stylesheets/spree/backend/_bootstrap_custom.scss
|
287
273
|
- app/assets/stylesheets/spree/backend/components/_actions.scss
|
288
274
|
- app/assets/stylesheets/spree/backend/components/_breadcrumb.scss
|
275
|
+
- app/assets/stylesheets/spree/backend/components/_buttons.scss
|
289
276
|
- app/assets/stylesheets/spree/backend/components/_editable_table.scss
|
290
277
|
- app/assets/stylesheets/spree/backend/components/_hint.scss
|
291
278
|
- app/assets/stylesheets/spree/backend/components/_image_placeholder.scss
|
@@ -300,6 +287,7 @@ files:
|
|
300
287
|
- app/assets/stylesheets/spree/backend/components/_stock_table.scss
|
301
288
|
- app/assets/stylesheets/spree/backend/components/_table-filter.scss
|
302
289
|
- app/assets/stylesheets/spree/backend/components/_tabs.scss
|
290
|
+
- app/assets/stylesheets/spree/backend/globals/_deprecated_variables.scss
|
303
291
|
- app/assets/stylesheets/spree/backend/globals/_deprecation.scss
|
304
292
|
- app/assets/stylesheets/spree/backend/globals/_functions.scss
|
305
293
|
- app/assets/stylesheets/spree/backend/globals/_mixins.css
|
@@ -325,6 +313,7 @@ files:
|
|
325
313
|
- app/assets/stylesheets/spree/backend/sections/_taxons.scss
|
326
314
|
- app/assets/stylesheets/spree/backend/sections/_users.scss
|
327
315
|
- app/assets/stylesheets/spree/backend/sections/_variants.scss
|
316
|
+
- app/assets/stylesheets/spree/backend/shared/_fonts.scss
|
328
317
|
- app/assets/stylesheets/spree/backend/shared/_forms.scss
|
329
318
|
- app/assets/stylesheets/spree/backend/shared/_header.scss
|
330
319
|
- app/assets/stylesheets/spree/backend/shared/_icons.scss
|
@@ -365,7 +354,6 @@ files:
|
|
365
354
|
- app/controllers/spree/admin/refunds_controller.rb
|
366
355
|
- app/controllers/spree/admin/reimbursement_types_controller.rb
|
367
356
|
- app/controllers/spree/admin/reimbursements_controller.rb
|
368
|
-
- app/controllers/spree/admin/reports_controller.rb
|
369
357
|
- app/controllers/spree/admin/resource_controller.rb
|
370
358
|
- app/controllers/spree/admin/return_authorizations_controller.rb
|
371
359
|
- app/controllers/spree/admin/return_items_controller.rb
|
@@ -377,6 +365,7 @@ files:
|
|
377
365
|
- app/controllers/spree/admin/stock_items_controller.rb
|
378
366
|
- app/controllers/spree/admin/stock_locations_controller.rb
|
379
367
|
- app/controllers/spree/admin/stock_movements_controller.rb
|
368
|
+
- app/controllers/spree/admin/store_credit_reasons_controller.rb
|
380
369
|
- app/controllers/spree/admin/store_credits_controller.rb
|
381
370
|
- app/controllers/spree/admin/stores_controller.rb
|
382
371
|
- app/controllers/spree/admin/style_guide_controller.rb
|
@@ -396,6 +385,7 @@ files:
|
|
396
385
|
- app/helpers/spree/admin/orders_helper.rb
|
397
386
|
- app/helpers/spree/admin/payments_helper.rb
|
398
387
|
- app/helpers/spree/admin/products_helper.rb
|
388
|
+
- app/helpers/spree/admin/promotions_helper.rb
|
399
389
|
- app/helpers/spree/admin/reimbursement_type_helper.rb
|
400
390
|
- app/helpers/spree/admin/stock_locations_helper.rb
|
401
391
|
- app/helpers/spree/admin/stock_movements_helper.rb
|
@@ -472,16 +462,17 @@ files:
|
|
472
462
|
- app/views/spree/admin/payments/_capture_events.html.erb
|
473
463
|
- app/views/spree/admin/payments/_form.html.erb
|
474
464
|
- app/views/spree/admin/payments/_list.html.erb
|
465
|
+
- app/views/spree/admin/payments/_log_entries.html.erb
|
475
466
|
- app/views/spree/admin/payments/credit.html.erb
|
476
467
|
- app/views/spree/admin/payments/index.html.erb
|
477
468
|
- app/views/spree/admin/payments/new.html.erb
|
478
469
|
- app/views/spree/admin/payments/show.html.erb
|
479
470
|
- app/views/spree/admin/payments/source_forms/_check.html.erb
|
480
471
|
- app/views/spree/admin/payments/source_forms/_gateway.html.erb
|
481
|
-
- app/views/spree/admin/payments/source_forms/
|
472
|
+
- app/views/spree/admin/payments/source_forms/_store_credit.html.erb
|
482
473
|
- app/views/spree/admin/payments/source_views/_check.html.erb
|
483
474
|
- app/views/spree/admin/payments/source_views/_gateway.html.erb
|
484
|
-
- app/views/spree/admin/payments/source_views/
|
475
|
+
- app/views/spree/admin/payments/source_views/_store_credit.html.erb
|
485
476
|
- app/views/spree/admin/prices/_form.html.erb
|
486
477
|
- app/views/spree/admin/prices/_master_variant_table.html.erb
|
487
478
|
- app/views/spree/admin/prices/_table.html.erb
|
@@ -505,6 +496,7 @@ files:
|
|
505
496
|
- app/views/spree/admin/promotion_code_batches/new.html.erb
|
506
497
|
- app/views/spree/admin/promotion_codes/index.csv.ruby
|
507
498
|
- app/views/spree/admin/promotion_codes/index.html.erb
|
499
|
+
- app/views/spree/admin/promotion_codes/new.html.erb
|
508
500
|
- app/views/spree/admin/promotion_rules/create.js.erb
|
509
501
|
- app/views/spree/admin/promotion_rules/destroy.js.erb
|
510
502
|
- app/views/spree/admin/promotions/_actions.html.erb
|
@@ -555,8 +547,6 @@ files:
|
|
555
547
|
- app/views/spree/admin/reimbursements/edit.html.erb
|
556
548
|
- app/views/spree/admin/reimbursements/index.html.erb
|
557
549
|
- app/views/spree/admin/reimbursements/show.html.erb
|
558
|
-
- app/views/spree/admin/reports/index.html.erb
|
559
|
-
- app/views/spree/admin/reports/sales_total.html.erb
|
560
550
|
- app/views/spree/admin/return_authorizations/_form.html.erb
|
561
551
|
- app/views/spree/admin/return_authorizations/edit.html.erb
|
562
552
|
- app/views/spree/admin/return_authorizations/index.html.erb
|
@@ -597,7 +587,6 @@ files:
|
|
597
587
|
- app/views/spree/admin/shared/_promotion_sub_menu.html.erb
|
598
588
|
- app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
|
599
589
|
- app/views/spree/admin/shared/_refunds.html.erb
|
600
|
-
- app/views/spree/admin/shared/_report_order_criteria.html.erb
|
601
590
|
- app/views/spree/admin/shared/_settings_checkout_tabs.html.erb
|
602
591
|
- app/views/spree/admin/shared/_settings_sub_menu.html.erb
|
603
592
|
- app/views/spree/admin/shared/_shipping_tabs.html.erb
|
@@ -633,8 +622,12 @@ files:
|
|
633
622
|
- app/views/spree/admin/stock_locations/index.html.erb
|
634
623
|
- app/views/spree/admin/stock_locations/new.html.erb
|
635
624
|
- app/views/spree/admin/stock_movements/index.html.erb
|
625
|
+
- app/views/spree/admin/store_credit_reasons/edit.html.erb
|
626
|
+
- app/views/spree/admin/store_credit_reasons/index.html.erb
|
627
|
+
- app/views/spree/admin/store_credit_reasons/new.html.erb
|
628
|
+
- app/views/spree/admin/store_credit_reasons/shared/_form.html.erb
|
636
629
|
- app/views/spree/admin/store_credits/_form.html.erb
|
637
|
-
- app/views/spree/admin/store_credits/
|
630
|
+
- app/views/spree/admin/store_credits/_store_credit_reason_field.html.erb
|
638
631
|
- app/views/spree/admin/store_credits/edit_amount.html.erb
|
639
632
|
- app/views/spree/admin/store_credits/edit_validity.html.erb
|
640
633
|
- app/views/spree/admin/store_credits/index.html.erb
|
@@ -726,6 +719,7 @@ files:
|
|
726
719
|
- spec/controllers/spree/admin/base_controller_spec.rb
|
727
720
|
- spec/controllers/spree/admin/cancellations_controller_spec.rb
|
728
721
|
- spec/controllers/spree/admin/customer_returns_controller_spec.rb
|
722
|
+
- spec/controllers/spree/admin/locale_controller_spec.rb
|
729
723
|
- spec/controllers/spree/admin/missing_products_controller_spec.rb
|
730
724
|
- spec/controllers/spree/admin/orders/customer_details_controller_spec.rb
|
731
725
|
- spec/controllers/spree/admin/orders_controller_spec.rb
|
@@ -740,7 +734,6 @@ files:
|
|
740
734
|
- spec/controllers/spree/admin/promotions_controller_spec.rb
|
741
735
|
- spec/controllers/spree/admin/refunds_controller_spec.rb
|
742
736
|
- spec/controllers/spree/admin/reimbursements_controller_spec.rb
|
743
|
-
- spec/controllers/spree/admin/reports_controller_spec.rb
|
744
737
|
- spec/controllers/spree/admin/resource_controller_spec.rb
|
745
738
|
- spec/controllers/spree/admin/return_authorizations_controller_spec.rb
|
746
739
|
- spec/controllers/spree/admin/return_items_controller_spec.rb
|
@@ -768,10 +761,12 @@ files:
|
|
768
761
|
- spec/features/admin/orders/cancelling_and_resuming_spec.rb
|
769
762
|
- spec/features/admin/orders/cancelling_inventory_spec.rb
|
770
763
|
- spec/features/admin/orders/customer_details_spec.rb
|
764
|
+
- spec/features/admin/orders/customer_returns_spec.rb
|
771
765
|
- spec/features/admin/orders/line_items_spec.rb
|
772
766
|
- spec/features/admin/orders/listing_spec.rb
|
773
767
|
- spec/features/admin/orders/log_entries_spec.rb
|
774
768
|
- spec/features/admin/orders/new_order_spec.rb
|
769
|
+
- spec/features/admin/orders/new_refund_spec.rb
|
775
770
|
- spec/features/admin/orders/order_details_spec.rb
|
776
771
|
- spec/features/admin/orders/payments_spec.rb
|
777
772
|
- spec/features/admin/orders/return_authorizations_spec.rb
|
@@ -793,10 +788,10 @@ files:
|
|
793
788
|
- spec/features/admin/promotions/option_value_rule_spec.rb
|
794
789
|
- spec/features/admin/promotions/product_rule_spec.rb
|
795
790
|
- spec/features/admin/promotions/promotion_categories_spec.rb
|
791
|
+
- spec/features/admin/promotions/promotion_spec.rb
|
796
792
|
- spec/features/admin/promotions/tiered_calculator_spec.rb
|
797
793
|
- spec/features/admin/promotions/user_rule_spec.rb
|
798
794
|
- spec/features/admin/reimbursements_spec.rb
|
799
|
-
- spec/features/admin/reports_spec.rb
|
800
795
|
- spec/features/admin/store_credits_spec.rb
|
801
796
|
- spec/features/admin/stores_spec.rb
|
802
797
|
- spec/features/admin/style_guide_spec.rb
|
@@ -816,6 +811,8 @@ files:
|
|
816
811
|
- spec/javascripts/support/with_translations.js
|
817
812
|
- spec/javascripts/translation_spec.js
|
818
813
|
- spec/javascripts/views/number_with_currency_spec.js
|
814
|
+
- spec/models/spree/backend_configuration/menu_item_spec.rb
|
815
|
+
- spec/models/spree/backend_configuration_spec.rb
|
819
816
|
- spec/spec_helper.rb
|
820
817
|
- spec/support/appear_before_matcher.rb
|
821
818
|
- spec/support/feature/base_feature_helper.rb
|
@@ -825,6 +822,10 @@ files:
|
|
825
822
|
- spec/test_views/spree/admin/widgets/edit.html.erb
|
826
823
|
- spec/test_views/spree/admin/widgets/new.html.erb
|
827
824
|
- spec/views/spree/admin/shared/navigation_footer_spec.rb
|
825
|
+
- vendor/assets/fonts/inter/Inter-Regular.woff
|
826
|
+
- vendor/assets/fonts/inter/Inter-Regular.woff2
|
827
|
+
- vendor/assets/fonts/inter/Inter-SemiBold.woff
|
828
|
+
- vendor/assets/fonts/inter/Inter-SemiBold.woff2
|
828
829
|
- vendor/assets/images/solidus_admin/select2-spinner.gif
|
829
830
|
- vendor/assets/images/solidus_admin/select2.png
|
830
831
|
- vendor/assets/images/solidus_admin/select2x2.png
|
@@ -848,6 +849,7 @@ files:
|
|
848
849
|
- vendor/assets/javascripts/solidus_admin/select2_locales/select2_locale_da.js
|
849
850
|
- vendor/assets/javascripts/solidus_admin/select2_locales/select2_locale_de.js
|
850
851
|
- vendor/assets/javascripts/solidus_admin/select2_locales/select2_locale_el.js
|
852
|
+
- vendor/assets/javascripts/solidus_admin/select2_locales/select2_locale_en-US.js
|
851
853
|
- vendor/assets/javascripts/solidus_admin/select2_locales/select2_locale_es-MX.js
|
852
854
|
- vendor/assets/javascripts/solidus_admin/select2_locales/select2_locale_es.js
|
853
855
|
- vendor/assets/javascripts/solidus_admin/select2_locales/select2_locale_et.js
|