Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Removed outdated tests
Damian Legawiec5088793e8914
diff --git a/admin/spec/features/spree/admin/products/products_spec.rb b/admin/spec/features/spree/admin/products/products_spec.rbindex 9233609202..2eee3a31e8 100644--- a/admin/spec/features/spree/admin/products/products_spec.rb+++ b/admin/spec/features/spree/admin/products/products_spec.rb@@ -71,88 +71,6 @@ describe 'Products', type: :feature doendend- context 'searching products' do- it 'is able to search products by their properties' do- create(:product, name: 'apache baseball cap', sku: 'A100')- create(:product, name: 'zomg shirt')-- visit spree.admin_products_path- fill_in 'q_multi_search', with: 'cap'- within('main') { click_on 'Filter Results' }-- expect(page).to have_content('apache baseball cap')- expect(page).not_to have_content('zomg shirt')- end-- describe 'Products index tabs' do- let!(:draft_product) { create(:product, status: 'draft') }- let!(:pre_order_product) { create(:product, status: 'draft', available_on: 1.week.from_now) }- let!(:active_product) { create(:product, status: 'active') }- let!(:archived_product) { create(:product, status: 'archived') }- let!(:deleted_product) { create(:product, status: 'archived', deleted_at: 1.day.ago) }-- before do- visit spree.admin_products_path- end-- context 'all products' do- before do- click_link 'All statuses'- end-- it 'shows all the products without deleted' do- expect(page).to have_content(draft_product.name)- expect(page).to have_content(pre_order_product.name)- expect(page).to have_content(active_product.name)- expect(page).not_to have_content(archived_product.name)- expect(page).not_to have_content(deleted_product.name)- end- end-- context 'active products' do- before do- click_link 'Active'- end-- it 'shows all the active products without deleted' do- expect(page).not_to have_content(draft_product.name)- expect(page).not_to have_content(pre_order_product.name)- expect(page).to have_content(active_product.name)- expect(page).not_to have_content(archived_product.name)- expect(page).not_to have_content(deleted_product.name)- end- end-- context 'draft products' do- before do- click_link 'Draft'- end-- it 'shows all the draft products without deleted' do- expect(page).to have_content(draft_product.name)- expect(page).to have_content(pre_order_product.name)- expect(page).not_to have_content(active_product.name)- expect(page).not_to have_content(archived_product.name)- expect(page).not_to have_content(deleted_product.name)- end- end-- context 'archived products' do- before do- click_link 'Archived'- end-- it 'shows all the archived products without deleted' do- expect(page).not_to have_content(draft_product.name)- expect(page).not_to have_content(pre_order_product.name)- expect(page).not_to have_content(active_product.name)- expect(page).to have_content(archived_product.name)- expect(page).not_to have_content(deleted_product.name)- end- end- end- end-context 'updating a product' dolet(:product) { create(:product, stores: Spree::Store.all) }@@ -1171,52 +1089,5 @@ describe 'Products', type: :feature doendendend-- context 'filtering products', js: true do- it 'renders selected filters' do- visit spree.admin_products_path-- fill_in 'q_multi_search', with: 'Backpack'-- within 'main' do- click_on 'Filters'- end-- within('#product-filters-drawer') do- click_on 'Filter Results'- end-- within('.filter-badges-container') do- expect(page).to have_content('Query: Backpack')- end- end-- context 'by tag' do- let(:product_without_tag) { create(:product, stores: [store]) }- let(:product) { create(:product, stores: [store]) }-- before do- product.tag_list.add('some tag')- product.save- end-- it 'filters products with tag only' do- visit spree.admin_products_path-- within('main') { click_on 'Filters' }-- within('#product-filters-drawer') do- fill_in 'Tags', with: 'some tag'-- find('.ts-dropdown').click- find('#q_tags_name_in-ts-label').click- click_on 'Filter Results'- end-- expect(page).to have_content(product.name)- expect(page).not_to have_content(product_without_tag.name)- end- end- endendend