-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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: Empty all placeholder menu #7403
Conversation
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.
The change looks good, although I would question why no tests failed for this issue. Maybe it has no coverage. Here is an example of a test that checks the plugin menu, hopefully this will be super easy to implement:
def test_get_placeholder_plugin_menu(self): |
I think when any bugs like this are found and no tests failed, we should implement a test to ensure it doesn't happen again. Paulo would regularly state that he had little confidence in the cms test suite, due to that we have tried to add confidence in the test suite early on in v4.
I see your point. This was not detected since |
@Aiky30 It turns out there was a test for the extended menu items. The new test also includes the standard items. (Copy, Paste, Empty all) Other critical template elements (
Afaics these are covered with tests. |
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.
Awesome, and just like that, the world is a better place for all. :-)
Wait: The first two are tested but do not detect missing links. I'll add two more tests. |
@Aiky30 Do you know if Same with
|
You could possibly get this message if you have content in one language but you've not yet created content in another. cms/templates/toolbar/items/live_draft.html is possibly not used, although it could still be used and the name wasn't updated ... |
Is there an endpoint for that? It seems that the page content object needs to be created (and thereby the language) to edit it. If you can give me an edit endpoint for a non-existing language I can add a test for the message. OK, it it could be used we better keep the |
Description
The empty placeholder menu currently does not work (#7389). The url is not rendered into the template.
This PR corrects the template and uses the
url
template tag to retrieve the admin url for "Empty all".Checklist
develop-4