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
Delete old home_spec.rb file, it is now tested as a cms_section feature tests.
Matthew Kennedy6e6f54865f7f
diff --git a/frontend/spec/features/home_spec.rb b/frontend/spec/features/home_spec.rbdeleted file mode 100644index adff607e8b..0000000000--- a/frontend/spec/features/home_spec.rb+++ /dev/null@@ -1,51 +0,0 @@-require 'spec_helper'--describe 'Visiting the homepage', type: :feature, js: true do- let!(:store) { Spree::Store.default }-- let!(:taxonomy_a) { create(:taxonomy, name: 'Bestsellers') }- let!(:bestsellers) { taxonomy_a.root.children.create(name: 'Bestsellers') }-- let!(:product_a) { create(:product, name: 'Superman T-Shirt', taxons: [bestsellers]) }- let!(:product_b) { create(:product, name: 'Batman Socks', taxons: [bestsellers]) }-- let!(:homepage) { create(:cms_homepage, store: store) }- let!(:hp_section) { create(:cms_product_carousel_section, cms_page: homepage, linked_resource: bestsellers) }-- context 'when taxon bestsellers exists and has products available in current store currency' do- before do- visit spree.root_path- end-- it 'loads the carousel with the products displayed' do- within "div[data-product-carousel-taxon-id='#{hp_section.linked_resource.id}']" do- expect(page).not_to have_content('BESTSELLERS')- expect(page).to have_content('Superman T-Shirt')- expect(page).to have_content('Batman Socks')- end- end-- it 'loads carousel items in order of position' do- within '.carouselItem:nth-child(1)' do- expect(page).to have_content('Superman T-Shirt')- end-- within '.carouselItem:nth-child(2)' do- expect(page).to have_content('Batman Socks')- end- end- end-- context 'when products exist but not available in the current store currency' do- before do- store.update(default_currency: 'GBP')- visit spree.root_path- end-- it 'the carousel is not loaded' do- expect(page).not_to have_content('BESTSELLERS')- expect(page).not_to have_content('Superman T-Shirt')- expect(page).not_to have_content('Batman Socks')- end- end-end