-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ajax filtering for the map markers on proposals #39
base: release/0.26-stable
Are you sure you want to change the base?
Conversation
related to #39 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @antopalidi, this is great!
In order to be super-duper excellent we should add a test to this.
I think we can add a case in the file decidim-proposals/spec/systemindex_proposals_spec.rb
to check that the markerData
has the corresponding filtered content.
it would be something like
context "when there are filters" do
it "has proposals in markerData" do
visit_component
expect(page.body).to have_content("here some content that should appear in the json")
end
it "has no proposals in markerData on filtering" do
visit_component
uncheck "Accepted"
expect(page.body).to have_content("here some content that should appear in the json")
end
end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good!
video-1.mov