We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcc0e90 commit add36d3Copy full SHA for add36d3
admin/spec/features/product_spec.rb
@@ -1,6 +1,7 @@
1
# frozen_string_literal: true
2
3
require 'spec_helper'
4
+require "solidus_admin/testing_support/shared_examples/moveable"
5
6
describe "Product", type: :feature do
7
before do
@@ -119,5 +120,14 @@
119
120
expect(page).to have_current_path("/admin/option_types")
121
end
122
123
+
124
+ it_behaves_like "features: sortable" do
125
+ let(:product) { create(:product) }
126
+ let(:factory) { :option_type }
127
+ let(:factory_attrs) { { products: [product] } }
128
+ let(:displayed_attribute) { :name }
129
+ let(:handle) { ".handle" }
130
+ let(:path) { solidus_admin.product_path(product) }
131
+ end
132
133
0 commit comments