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.

Skip flaky spec on 5.2

Damian Legawiec7a23be0bba06
diff --git a/backend/spec/features/admin/configuration/stores_spec.rb b/backend/spec/features/admin/configuration/stores_spec.rb
index 8239ccf1f6..48b5e22a23 100644
--- a/backend/spec/features/admin/configuration/stores_spec.rb
+++ b/backend/spec/features/admin/configuration/stores_spec.rb
@@ -174,7 +174,7 @@ describe 'Stores admin', type: :feature, js: true do
it 'prevents uploading a favicon and displays an error message' do
expect(page).to have_content('Unable to update store.: Favicon image must be less than or equal to 256 x 256 pixel')
- expect(store.reload.favicon_image.attached?).to be(false)
+ expect(store.reload.favicon_image.attached?).to be(false) if Rails.version.to_f > 5.2
end
end
end