mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Disable StimulusReflex specs temporarily
Unfortunately the testing framework doesn't support the latest version of StimulusReflex. This is a third party framework that doesn't seem to be maintained. Maybe we should convert these to ActionCable tests.
This commit is contained in:
@@ -10,6 +10,7 @@ RSpec.describe ProductsReflex, type: :reflex, feature: :admin_style_v3 do
|
||||
let(:flash) { {} }
|
||||
|
||||
before do
|
||||
pending "https://github.com/podia/stimulus_reflex_testing/issues/21"
|
||||
# Mock flash, because stimulus_reflex_testing doesn't support sessions
|
||||
allow_any_instance_of(described_class).to receive(:flash).and_return(flash)
|
||||
end
|
||||
|
||||
@@ -6,6 +6,8 @@ RSpec.describe UserReflex, type: :reflex do
|
||||
let(:current_user) { create(:user) }
|
||||
let(:context) { { url: spree.admin_dashboard_url, connection: { current_user: } } }
|
||||
|
||||
before { pending "https://github.com/podia/stimulus_reflex_testing/issues/21" }
|
||||
|
||||
describe "#accept_terms_of_services" do
|
||||
subject(:reflex) { build_reflex(method_name: :accept_terms_of_services, **context) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user