From fafffbe849dcfcb06612828640a6e9120f8e8c4f Mon Sep 17 00:00:00 2001 From: Leticia Errandonea Mattos Date: Thu, 27 Feb 2025 08:39:26 -0300 Subject: [PATCH] [NUOPEN-214] [Tech task] Remove `cross_core_projects` and `cross_core_order_view` (#5056) * Remove cross_core_projects * Remove cross_core_order_view --- .../concerns/new_inprocess_controller.rb | 5 +- .../problem_order_details_controller.rb | 5 +- app/controllers/facility_orders_controller.rb | 4 +- .../order_detail_stored_files_controller.rb | 2 +- app/controllers/reservations_controller.rb | 4 - app/forms/add_to_order_form.rb | 10 +-- app/lib/ability.rb | 6 +- app/models/order.rb | 6 -- .../_merge_order_form.html.haml | 2 +- app/views/facility_orders/index.html.haml | 19 ++--- app/views/facility_orders/show.html.haml | 19 +++-- app/views/projects/_tabnav.html.haml | 2 +- .../projects/cross_core_orders.html.haml | 74 +++++++++---------- .../shared/_problem_order_details.html.haml | 14 +--- config/settings.yml | 2 - .../adding_to_a_cross_core_order_spec.rb | 4 +- spec/system/admin/adding_to_an_order_spec.rb | 2 +- .../admin/facility_orders_search_spec.rb | 2 +- spec/system/admin/projects_edit_spec.rb | 2 +- spec/system/admin/projects_show_spec.rb | 2 +- spec/system/admin/reservation_actions_spec.rb | 2 +- spec/system/cross_core_orders_spec.rb | 2 +- 22 files changed, 76 insertions(+), 114 deletions(-) diff --git a/app/controllers/concerns/new_inprocess_controller.rb b/app/controllers/concerns/new_inprocess_controller.rb index d2ea61cc74..06c2121e87 100644 --- a/app/controllers/concerns/new_inprocess_controller.rb +++ b/app/controllers/concerns/new_inprocess_controller.rb @@ -13,12 +13,9 @@ def index TransactionSearch::OrderedForSearcher, TransactionSearch::OrderStatusSearcher, TransactionSearch::DateRangeSearcher, + TransactionSearch::CrossCoreSearcher, ] - if SettingsHelper.feature_on?(:cross_core_order_view) - searchers << TransactionSearch::CrossCoreSearcher - end - @search = TransactionSearch::Searcher.new(*searchers).search(order_details, @search_form) @order_details = @search.order_details.includes(:order_status).joins_assigned_users.reorder(sort_clause) @date_range_field = @search_form.date_params[:field] diff --git a/app/controllers/concerns/problem_order_details_controller.rb b/app/controllers/concerns/problem_order_details_controller.rb index 442c56da50..e579e8d932 100644 --- a/app/controllers/concerns/problem_order_details_controller.rb +++ b/app/controllers/concerns/problem_order_details_controller.rb @@ -20,12 +20,9 @@ def show_problems TransactionSearch::AccountSearcher, TransactionSearch::OrderedForSearcher, TransactionSearch::DateRangeSearcher, + TransactionSearch::CrossCoreSearcher, ] - if SettingsHelper.feature_on?(:cross_core_order_view) - searchers << TransactionSearch::CrossCoreSearcher - end - @search = TransactionSearch::Searcher.new(*searchers).search(order_details, @search_form) @order_details = @search.order_details.preload(:order_status, :assigned_user) diff --git a/app/controllers/facility_orders_controller.rb b/app/controllers/facility_orders_controller.rb index 1732b36fe0..4302301cc9 100644 --- a/app/controllers/facility_orders_controller.rb +++ b/app/controllers/facility_orders_controller.rb @@ -108,7 +108,7 @@ def load_order def load_merge_orders missing_reservation_order_ids = [] - if SettingsHelper.feature_on?(:cross_core_projects) && @order.cross_core_project_id.present? + if @order.cross_core_project_id.present? project_order_ids = @order.cross_core_project.orders.pluck(:id) missing_reservation_order_ids = missing_reservation_order_ids(project_order_ids) else @@ -138,8 +138,6 @@ def problem_order_details end def load_cross_core_order_details - return unless SettingsHelper.feature_on?(:cross_core_projects) - @cross_core_project = @order.cross_core_project @cross_core_data_by_facility_id = {} diff --git a/app/controllers/order_detail_stored_files_controller.rb b/app/controllers/order_detail_stored_files_controller.rb index 6a22163ceb..afc76260bd 100644 --- a/app/controllers/order_detail_stored_files_controller.rb +++ b/app/controllers/order_detail_stored_files_controller.rb @@ -84,7 +84,7 @@ def ability_resource end def redirect_to_facility_order(consider_merge_order: false) - if SettingsHelper.feature_on?(:cross_core_projects) && @original_order_id.present? + if @original_order_id.present? original_order = Order.find(@original_order_id) order = consider_merge_order ? original_order.merge_order || original_order : original_order diff --git a/app/controllers/reservations_controller.rb b/app/controllers/reservations_controller.rb index 8d20141831..809e2da5a5 100644 --- a/app/controllers/reservations_controller.rb +++ b/app/controllers/reservations_controller.rb @@ -418,8 +418,6 @@ def duration_change_valid? end def set_accounts_for_cross_core_project - return unless SettingsHelper.feature_on?(:cross_core_projects) - return if @order.cross_core_project_id.nil? @accounts_for_cross_core_project = AvailableAccountsFinder.new(original_project_order.user, @order.facility) @@ -436,8 +434,6 @@ def original_project_order end def set_cross_core_cancel_path - return unless SettingsHelper.feature_on?(:cross_core_projects) - return if @order.cross_core_project_id.blank? current_user_facilities = current_user.facilities diff --git a/app/forms/add_to_order_form.rb b/app/forms/add_to_order_form.rb index ba2d22349f..309de4995f 100644 --- a/app/forms/add_to_order_form.rb +++ b/app/forms/add_to_order_form.rb @@ -31,12 +31,10 @@ def save if @original_order.facility.id == @facility_id add_to_order! - elsif SettingsHelper.feature_on?(:cross_core_projects) - if order_for_selected_facility.nil? - create_cross_core_project_and_add_order! - else - add_to_order! - end + elsif order_for_selected_facility.nil? + create_cross_core_project_and_add_order! + else + add_to_order! end true diff --git a/app/lib/ability.rb b/app/lib/ability.rb index 3a3df09e30..609712caeb 100644 --- a/app/lib/ability.rb +++ b/app/lib/ability.rb @@ -426,7 +426,7 @@ def cross_core_abilities(user, resource, controller) can :available_for_cross_core_ordering, Product elsif controller.is_a?(FacilityAccountsController) && user.facility_staff_or_manager_of_any_facility? can [:accounts_available_for_order], Account - elsif controller.is_a?(FacilityOrderDetailsController) && resource.is_a?(Facility) && SettingsHelper.feature_on?(:cross_core_projects) + elsif controller.is_a?(FacilityOrderDetailsController) && resource.is_a?(Facility) can [:destroy], OrderDetail do |order_detail| project = order_detail.order.cross_core_project @@ -440,7 +440,7 @@ def cross_core_abilities(user, resource, controller) end end - if resource.is_a?(OrderDetail) && SettingsHelper.feature_on?(:cross_core_projects) + if resource.is_a?(OrderDetail) project = resource.order.cross_core_project if project.present? @@ -448,7 +448,7 @@ def cross_core_abilities(user, resource, controller) end end - if controller.is_a?(FileUploadsController) && resource.is_a?(Facility) && SettingsHelper.feature_on?(:cross_core_projects) + if controller.is_a?(FileUploadsController) && resource.is_a?(Facility) can [:upload_sample_results, :destroy], StoredFile do |fileupload| project = fileupload.order_detail.project diff --git a/app/models/order.rb b/app/models/order.rb index f76c5cdb07..7503f8a524 100644 --- a/app/models/order.rb +++ b/app/models/order.rb @@ -24,12 +24,6 @@ class Order < ApplicationRecord attr_reader :project_id - def cross_core_project - return nil unless SettingsHelper.feature_on?(:cross_core_projects) - - super - end - def self.created_by_user(user) where(created_by: user.id) end diff --git a/app/views/facility_orders/_merge_order_form.html.haml b/app/views/facility_orders/_merge_order_form.html.haml index bb04c2cf78..cf0890a01e 100644 --- a/app/views/facility_orders/_merge_order_form.html.haml +++ b/app/views/facility_orders/_merge_order_form.html.haml @@ -1,7 +1,7 @@ - if @merge_orders.blank? .well = simple_form_for [current_facility, @add_to_order_form], url: facility_order_path(current_facility, @order), method: :put, html: { class: "js--edit-order" } do |f| - - enable_cross_core_changes = SettingsHelper.feature_on?(:cross_core_projects) && can?(:available_for_cross_core_ordering, Product) + - enable_cross_core_changes = can?(:available_for_cross_core_ordering, Product) - if enable_cross_core_changes = f.label :facility_id, Facility.model_name.human = f.input_field :facility_id, diff --git a/app/views/facility_orders/index.html.haml b/app/views/facility_orders/index.html.haml index 6a6f6fbf2e..b814b52755 100644 --- a/app/views/facility_orders/index.html.haml +++ b/app/views/facility_orders/index.html.haml @@ -9,7 +9,6 @@ .span12 = render "shared/transactions/search" -- cross_core_order_view_enabled = SettingsHelper.feature_on?(:cross_core_order_view) .span12 - if @order_details.any? = link_to t("reports.account_transactions.export"), url_for(format: :csv), class: "js--exportSearchResults pull-right", data: { form: ".search_form" } @@ -21,20 +20,17 @@ %th %th.nowrap= sortable "order_number", Order.model_name.human %th.nowrap= OrderDetail.model_name.human - - if cross_core_order_view_enabled - %th.nowrap= t("views.facility_orders.index.ordered_by") + %th.nowrap= t("views.facility_orders.index.ordered_by") %th.nowrap= sortable "ordered_for", Order.human_attribute_name(:user) %th.nowrap= sortable "ordered_at", Order.human_attribute_name(:ordered_at) %th.nowrap= OrderDetail.human_attribute_name(:quantity) %th.nowrap.order-note= sortable "product_name", OrderDetail.human_attribute_name(:product) - - if cross_core_order_view_enabled - %th.nowrap= Facility.model_name.human + %th.nowrap= Facility.model_name.human %th.nowrap= sortable "assigned_to", OrderDetail.human_attribute_name(:assigned_user) %th.nowrap= sortable "status" - # OrderDetail.human_attribute_name(:actual_cost) returns "Price". Despite the :actual_ prefix, these order details are new/in process, so most will have estimated costs, but could be actual or unassigned. %th.nowrap.currency= OrderDetail.human_attribute_name(:actual_cost) - - if cross_core_order_view_enabled - %th.nowrap= PriceGroup.model_name.human + %th.nowrap= PriceGroup.model_name.human %tbody - @order_details.each do |od| %tr @@ -42,20 +38,17 @@ %td.centered= check_box_tag("order_detail_ids[]", od.id, false, {class: "toggle", id: nil }) %td.centered= link_to od.order_id, facility_order_path(current_facility, od.order) %td.centered= link_to od.id, manage_order_detail_path(od), class: "manage-order-detail" - - if cross_core_order_view_enabled - %td= od.order.created_by_user.full_name + %td= od.order.created_by_user.full_name %td= od.order.user.full_name %td= format_usa_datetime(od.ordered_at) %td.centered= order_detail.wrapped_quantity = render partial: "shared/order_detail_cell", locals: { od: od } - - if cross_core_order_view_enabled - %td= render "shared/cross_core_facility_abbreviation_order_details", order_detail: od, current_facility: current_facility + %td= render "shared/cross_core_facility_abbreviation_order_details", order_detail: od, current_facility: current_facility %td= od.assigned_user %td= od.order_status %td.currency = order_detail.wrapped_total - - if cross_core_order_view_enabled - %td= order_detail.price_group_name + %td= order_detail.price_group_name = render partial: "table_controls" = will_paginate(@order_details) diff --git a/app/views/facility_orders/show.html.haml b/app/views/facility_orders/show.html.haml index 6701c688c8..4569905e86 100644 --- a/app/views/facility_orders/show.html.haml +++ b/app/views/facility_orders/show.html.haml @@ -8,15 +8,14 @@ = banner_date_label @order, :ordered_at = banner_label @order, :user = banner_label @order, :created_by_user - - if SettingsHelper.feature_on?(:cross_core_projects) - - if @cross_core_project.present? - %dl.span2 - %dt= t("views.facility_orders.show.cross_core_project_id") - %dd - = link_to @cross_core_project.name, facility_project_path(current_facility, @cross_core_project.id) - %dl.span2 - %dt= t("views.facility_orders.show.cross_core_project_total") - %dd= number_to_currency @gross_order_value + - if @cross_core_project.present? + %dl.span2 + %dt= t("views.facility_orders.show.cross_core_project_id") + %dd + = link_to @cross_core_project.name, facility_project_path(current_facility, @cross_core_project.id) + %dl.span2 + %dt= t("views.facility_orders.show.cross_core_project_total") + %dd= number_to_currency @gross_order_value - if @merge_orders.blank? && current_ability.can?(:send_receipt, @order) .pull-right= render "send_receipt" @@ -30,7 +29,7 @@ - subheader_key = (@cross_core_project.present? ? "views.facility_orders.show.add_to_cross_core_order_header" : "views.facility_orders.show.add_to_order_header") %h2= t(subheader_key) -- if SettingsHelper.feature_on?(:cross_core_projects) && @cross_core_data_by_facility_id.present? +- if @cross_core_data_by_facility_id.present? #js--reportAnIssueModal.modal.hide.fade #accordion diff --git a/app/views/projects/_tabnav.html.haml b/app/views/projects/_tabnav.html.haml index 3eca375a25..4be4b21071 100644 --- a/app/views/projects/_tabnav.html.haml +++ b/app/views/projects/_tabnav.html.haml @@ -5,7 +5,7 @@ { action: :index }, @active_tab == "index" - - if current_ability.can?(:cross_core_orders, Project) && SettingsHelper.feature_on?(:cross_core_order_view) + - if current_ability.can?(:cross_core_orders, Project) %li = tab t(".cross_core_orders"), { action: :cross_core_orders }, diff --git a/app/views/projects/cross_core_orders.html.haml b/app/views/projects/cross_core_orders.html.haml index 19c872170f..3c58b8c7d9 100644 --- a/app/views/projects/cross_core_orders.html.haml +++ b/app/views/projects/cross_core_orders.html.haml @@ -8,43 +8,41 @@ .span12 = render "shared/transactions/search" -- cross_core_order_view_enabled = SettingsHelper.feature_on?(:cross_core_order_view) -- if cross_core_order_view_enabled - .span12 - - if @order_details.any? - %table.table.table-striped.table-hover.old-table - %thead +.span12 + - if @order_details.any? + %table.table.table-striped.table-hover.old-table + %thead + %tr + %th.nowrap= sortable "order_number", OrderDetail.model_name.human + %th.nowrap= t("views.facility_orders.index.ordered_by") + %th.nowrap= Order.human_attribute_name(:user) + %th.nowrap= sortable "ordered_at", Order.human_attribute_name(:ordered_at) + %th.nowrap= OrderDetail.human_attribute_name(:quantity) + %th.nowrap.order-note= OrderDetail.human_attribute_name(:product) + %th.nowrap= sortable "facility", Facility.model_name.human + %th.nowrap= Project.model_name.human + %th.nowrap= sortable "status" + %th.nowrap.currency= OrderDetail.human_attribute_name(:actual_cost) + %th.nowrap= PriceGroup.model_name.human + %tbody + - @order_details.each do |od| %tr - %th.nowrap= sortable "order_number", OrderDetail.model_name.human - %th.nowrap= t("views.facility_orders.index.ordered_by") - %th.nowrap= Order.human_attribute_name(:user) - %th.nowrap= sortable "ordered_at", Order.human_attribute_name(:ordered_at) - %th.nowrap= OrderDetail.human_attribute_name(:quantity) - %th.nowrap.order-note= OrderDetail.human_attribute_name(:product) - %th.nowrap= sortable "facility", Facility.model_name.human - %th.nowrap= Project.model_name.human - %th.nowrap= sortable "status" - %th.nowrap.currency= OrderDetail.human_attribute_name(:actual_cost) - %th.nowrap= PriceGroup.model_name.human - %tbody - - @order_details.each do |od| - %tr - - order_detail = OrderDetailPresenter.new(od) - %td= od - %td= od.order.created_by_user.full_name - %td= od.order.user.full_name - %td= format_usa_datetime(od.ordered_at) - %td.centered= order_detail.wrapped_quantity - = render partial: "shared/order_detail_cell", locals: { od: od } - %td= od.order.facility.abbreviation.truncate(6) - -# TODO: This should be a link when we have the project page - %td= od.order.cross_core_project&.name - %td= od.order_status - %td.currency - = order_detail.wrapped_total - %td= order_detail.price_group_name + - order_detail = OrderDetailPresenter.new(od) + %td= od + %td= od.order.created_by_user.full_name + %td= od.order.user.full_name + %td= format_usa_datetime(od.ordered_at) + %td.centered= order_detail.wrapped_quantity + = render partial: "shared/order_detail_cell", locals: { od: od } + %td= od.order.facility.abbreviation.truncate(6) + -# TODO: This should be a link when we have the project page + %td= od.order.cross_core_project&.name + %td= od.order_status + %td.currency + = order_detail.wrapped_total + %td= order_detail.price_group_name - = will_paginate(@order_details) - = render partial: "/price_display_footnote", locals: { admin: true } - - else - %p.notice= t(".no_orders") + = will_paginate(@order_details) + = render partial: "/price_display_footnote", locals: { admin: true } + - else + %p.notice= t(".no_orders") diff --git a/app/views/shared/_problem_order_details.html.haml b/app/views/shared/_problem_order_details.html.haml index 7313928b57..f3ba2ca677 100644 --- a/app/views/shared/_problem_order_details.html.haml +++ b/app/views/shared/_problem_order_details.html.haml @@ -1,5 +1,3 @@ -- cross_core_order_view_enabled = SettingsHelper.feature_on?(:cross_core_order_view) - %table.table.table-striped.table-hover %thead %tr.borderless @@ -12,14 +10,12 @@ %tr %th= Order.model_name.human %th= OrderDetail.model_name.human - - if cross_core_order_view_enabled - %th.nowrap= t(".th.ordered_by") + %th.nowrap= t(".th.ordered_by") %th= problem_order_date_header(local_assigns[:show_reservation_start_at]) %th= Order.human_attribute_name(:user) %th{ colspan: 2 }= t(".th.quantity_and_product") %th - - if cross_core_order_view_enabled - %th.nowrap= Facility.model_name.human + %th.nowrap= Facility.model_name.human %th= Account.model_name.human %th= t(".th.problem") %tbody @@ -35,8 +31,7 @@ %td.centered= link_to order_detail.id, manage_order_detail_path(order_detail), class: "manage-order-detail" - - if cross_core_order_view_enabled - %td= order_detail.order.created_by_user.full_name + %td= order_detail.order.created_by_user.full_name %td= problem_order_date(order_detail, local_assigns[:show_reservation_start_at]) %td= order_detail.order.user %td.centered= order_detail.quantity @@ -45,8 +40,7 @@ - if order_detail.add_accessories? = link_to new_facility_order_order_detail_accessory_path(current_facility, order_detail.order, order_detail), class: ["has_accessories", "persistent", "undecorated"] do = tooltip_icon "fa fa-plus-square", t("product_accessories.pick_accessories.title") - - if cross_core_order_view_enabled - %td= render "shared/cross_core_facility_abbreviation_order_details", order_detail: order_detail, current_facility: current_facility + %td= render "shared/cross_core_facility_abbreviation_order_details", order_detail: order_detail, current_facility: current_facility %td= order_detail.account %td.centered = order_detail_badges(order_detail) diff --git a/config/settings.yml b/config/settings.yml index e1537b9bea..781b69fa5e 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -158,8 +158,6 @@ feature: facility_tile_list_admin: false po_require_affiliate_account: true walkup_reservations: true - cross_core_projects: true - cross_core_order_view: <%= ENV.fetch("CROSS_CORE_ORDER_VIEW", true) %> show_reconciliation_deposit_number: <%= ENV.fetch("RECONCILIATION_DEPOSIT_NUMBER", false) %> show_daily_rate_option: true sanger_enabled_service: <%= ENV.fetch("SANGER_ENABLED_SERVICE", false) %> diff --git a/spec/system/admin/adding_to_a_cross_core_order_spec.rb b/spec/system/admin/adding_to_a_cross_core_order_spec.rb index 857e6e89ae..c6b012de80 100644 --- a/spec/system/admin/adding_to_a_cross_core_order_spec.rb +++ b/spec/system/admin/adding_to_a_cross_core_order_spec.rb @@ -2,7 +2,7 @@ require "rails_helper" -RSpec.describe "Adding to an existing order for cross core", :js, feature_setting: { cross_core_projects: true } do +RSpec.describe "Adding to an existing order for cross core", :js do let(:facility) { product.facility } let(:order) { create(:purchased_order, product: product, ordered_at: 1.week.ago) } let(:user) { create(:user, :staff, facility: facility) } @@ -96,7 +96,7 @@ end describe "adding an instrument reservation" do - describe "from another facility", :js, feature_setting: { cross_core_projects: true } do + describe "from another facility", :js do let(:product) { create(:setup_item, :with_facility_account) } let!(:instrument) { create(:setup_instrument, facility: facility2, cross_core_ordering_available: true) } let(:user) { create(:user, :facility_administrator, facility:) } diff --git a/spec/system/admin/adding_to_an_order_spec.rb b/spec/system/admin/adding_to_an_order_spec.rb index 6e1fc647dc..65e1bff9af 100644 --- a/spec/system/admin/adding_to_an_order_spec.rb +++ b/spec/system/admin/adding_to_an_order_spec.rb @@ -177,7 +177,7 @@ end end - describe "from same facility (with feature flag on)", :js, feature_setting: { cross_core_projects: true } do + describe "from same facility (with feature flag on)", :js do let(:product) { create(:setup_item, :with_facility_account) } let!(:instrument) { create(:setup_instrument, facility: facility) } let(:user) { create(:user, :facility_administrator, facility:) } diff --git a/spec/system/admin/facility_orders_search_spec.rb b/spec/system/admin/facility_orders_search_spec.rb index 223edfa344..256208d593 100644 --- a/spec/system/admin/facility_orders_search_spec.rb +++ b/spec/system/admin/facility_orders_search_spec.rb @@ -56,7 +56,7 @@ end end - context "cross-core orders", :js, feature_setting: { cross_core_order_view: true } do + context "cross-core orders", :js do let!(:originating_cross_core_order) { create(:purchased_order, product: item, account: accounts.first) } let!(:order_for_facility) { create(:purchased_order, product: item, account: accounts.first) } diff --git a/spec/system/admin/projects_edit_spec.rb b/spec/system/admin/projects_edit_spec.rb index 19da78252b..a8ccd4961a 100644 --- a/spec/system/admin/projects_edit_spec.rb +++ b/spec/system/admin/projects_edit_spec.rb @@ -2,7 +2,7 @@ require "rails_helper" -RSpec.describe "Projects edit", feature_setting: { cross_core_order_view: true } do +RSpec.describe "Projects edit" do # Defined in spec/support/contexts/cross_core_context.rb include_context "cross core orders" diff --git a/spec/system/admin/projects_show_spec.rb b/spec/system/admin/projects_show_spec.rb index 5895852c84..3b7273d326 100644 --- a/spec/system/admin/projects_show_spec.rb +++ b/spec/system/admin/projects_show_spec.rb @@ -2,7 +2,7 @@ require "rails_helper" -RSpec.describe "Projects show", feature_setting: { cross_core_order_view: true } do +RSpec.describe "Projects show" do # Defined in spec/support/contexts/cross_core_context.rb include_context "cross core orders" diff --git a/spec/system/admin/reservation_actions_spec.rb b/spec/system/admin/reservation_actions_spec.rb index 0692b086ea..f605dbf4ab 100644 --- a/spec/system/admin/reservation_actions_spec.rb +++ b/spec/system/admin/reservation_actions_spec.rb @@ -2,7 +2,7 @@ require "rails_helper" -RSpec.describe "Reservation actions", :js, feature_setting: { cross_core_projects: true } do +RSpec.describe "Reservation actions", :js do include_context "cross core orders" let(:facility2_instrument) { create(:setup_instrument, facility: facility2) } diff --git a/spec/system/cross_core_orders_spec.rb b/spec/system/cross_core_orders_spec.rb index 7ba69abfbd..0ef2085187 100644 --- a/spec/system/cross_core_orders_spec.rb +++ b/spec/system/cross_core_orders_spec.rb @@ -2,7 +2,7 @@ require "rails_helper" -RSpec.describe "Cross Core Orders", :js, feature_setting: { cross_core_order_view: true } do +RSpec.describe "Cross Core Orders", :js do # Defined in spec/support/contexts/cross_core_context.rb include_context "cross core orders"