Do not modify the controller class in the controller tests that render views#7755
Merged
mrcasals merged 4 commits intodecidim:developfrom Mar 27, 2021
Merged
Conversation
12 tasks
If we override the `view_context` method on the controller, the view assignment variables won't be available because the view context won't be re-created after the view action. This ensures the view assignments are available while keeping the controller class untouched.
The view_controller_class will be stored in a class variable once it has been called for the first time. Therefore, the allow and_return is unnecessary.
mrcasals
approved these changes
Mar 27, 2021
12 tasks
entantoencuanto
added a commit
that referenced
this pull request
Mar 31, 2021
* develop: (26 commits) Fix trustees admin menu (#7772) Do not modify the controller class in the controller tests that render views (#7755) Add HTML escaping to the expectations as the strings are escaped (#7760) Add automated accessibility audit + HTML validation to CI pipeline (#7751) fix(elections): js assets manifest (#7759) Add admin missing translations (#7702) Add Conferences and Admin missing translations (#7653) New Crowdin updates (#7735) Improve vote flow (#7682) Strip the <p> tags from inside the heading elements (#7732) Fix the date cell spec failing randomly close to day changes (#7703) Change the timeline date color for accessible color contrast against its background (#7750) Remove the opacity from process upcoming/past/all filters for accessible contrast (#7749) Fix color contrast against the sidebar navigation background (#7748) Validate the HTML for the account page (#7747) Fix report modal form accessibility (#7746) Accessibility fixes for conversations (#7745) Add a landmark ARIA role to the cookie banner (#7738) Fix HTML validation on standalone content page (#7744) Add aria-label to the area filter on participatory space pages (#7743) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎩 What? Why?
This should fix the flaky inititatives test that keeps constantly failing.
Example test run that failed:
https://github.com/decidim/decidim/runs/2200987554
When this happened, you would see a bunch of the following types of errors:
📌 Related Issues
Testing
Run the following initiatives specs in the following order (note the
--order definedflag):Also test that you are not breaking any of the specs added in #7336 (make sure CI passes all tests).
📋 Checklist
docs/.