-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
e2e: Fix multi entity editing test #27347
Conversation
Size Change: 0 B Total Size: 1.19 MB ℹ️ View Unchanged
|
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.
Looks good! Tested locally and all multi entity editing tests are now passing, vs. the master branch where I see failures in should only dirty the child when editing the child
and should only dirty the nested entity when editing the nested entity
.
Description
In #27303, the behavior of template resolution was changed such that a custom manually-created user template no longer overrides a theme template which has the same slug. This breaks the test because the test assumes two things:
front-page
will always be used instead of the theme template with the same slug.These assumptions should not be taken by the test, so we need to make it more robust. The failure always seems unrelated since these PRs continue to be merged. :P This PR fixes the issue by using a user created custom template which doesn't correspond to the template hierarchy. This way, it's not possible for a theme file to conflict with it. This test is only concerned with making sure that entity save states work correctly, so this is a fine approach for this test.
We should also follow up to create tests which cover the template resolution hierarchy so that it is more obvious when we are breaking it in some way or another. Currently I don't think we cover template priorities at all with tests. We definitely shouldn't rely on some unrelated test to inform us when it is broken :P
How has this been tested?
The multi entity editing test should pass. (I verified it does locally.)
Screenshots
Types of changes
Fix
Checklist: