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:
David Cook
2024-03-27 11:56:36 +11:00
parent 1d93b6f049
commit 792fecc3fd
2 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -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) }