Skip to content

armgit / spree

Public Imported from GitHub
0

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.

fix specs

Łukasz Adamczyk108c44057019
diff --git a/frontend/spec/features/products_filtering_spec.rb b/frontend/spec/features/products_filtering_spec.rb
index b389ef8867..d4f5edf260 100644
--- a/frontend/spec/features/products_filtering_spec.rb
+++ b/frontend/spec/features/products_filtering_spec.rb
@@ -85,10 +85,9 @@ describe 'Products filtering', :js do
expect(page).to have_selected_filter_with(value: 'WILSON')
click_on_filter 'Brand', value: 'Zeta'
- expect(page).to have_content 'First shirt'
- expect(page).to have_content 'Second shirt'
+ expect(page).to have_content 'No results'
expect(page).to have_selected_filter_with(value: 'WILSON')
- expect(page).to have_selected_filter_with(value: 'ALPHA')
+ expect(page).to have_selected_filter_with(value: 'ZETA')
click_on_filter 'Brand', value: 'Alpha'
expect(page).not_to have_content 'First shirt'