Skip to content

Commit add36d3

Browse files
committed
Add feature tests for sorting
1 parent fcc0e90 commit add36d3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

admin/spec/features/product_spec.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22

33
require 'spec_helper'
4+
require "solidus_admin/testing_support/shared_examples/moveable"
45

56
describe "Product", type: :feature do
67
before do
@@ -119,5 +120,14 @@
119120
expect(page).to have_current_path("/admin/option_types")
120121
end
121122
end
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
122132
end
123133
end

0 commit comments

Comments
 (0)