AI-Generated: Yes
Problem/Motivation
Since Drupal 11.4, admin/structure/types/manage/{bundle}/display (and the same path for users, comments and block content) is an overview of the bundle's view modes (EntityViewDisplayOverviewController). The Manage display form for the default view mode is now at .../display/default, and view modes are enabled or disabled from that overview instead of the "Custom display settings" checkboxes (display_modes_custom[...]) on the default display form.
The Display Suite tests still open .../display and still post display_modes_custom, so on 11.4.12 every Functional test that selects a layout fails with Button with id|name|label|value "Save" not found, the JavaScript test with Form field ... "ds_layout" not found, and CloneTest with Call to a member function click() on null.
This makes every Display Suite MR pipeline red, whatever it changes (for example !66, !67 and !68 on #3616070). The last green 8.x-3.x pipeline is from February 2026.
Steps to reproduce
- Run the Display Suite phpunit job against Drupal 11.4.x (the default CI target), or open
admin/structure/types/manage/article/displayon an 11.4 site with Display Suite enabled. - The page lists view modes. There is no Save button and no Layout select.
Proposed resolution
Tests only, no module code changes.
- Open
.../display/defaultwherever the tests meant the default display form (15 files). - Add
DsTestTrait::dsSetViewModeStatus(), which enables or disables a view mode through the entity API (a newly enabled view mode starts as a copy of the default display, as Field UI does). Use it instead of postingdisplay_modes_customin LayoutClassesTest and EntitiesTest.
This works on every core version in core_version_requirement, because .../display/default and the API exist before 11.4 too.
Verified locally on Drupal 11.4.12 / PHP 8.3 with ddev-drupal-contrib: all Functional and Unit tests pass (29 tests, 808 assertions) and FunctionalJavascript JavascriptTest passes. Before the change, LayoutClassesTest failed the same way as on CI.
Remaining tasks
- ✅ File an issue
- ✅ Addition/Change/Update/Fix
- ✅ Testing to ensure no regression
- ✅ Automated unit/functional testing coverage
- ➖ Developer Documentation support
- ➖ User Guide Documentation support
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ❌ Reviewed by a human
- ❌ Code review by maintainers
- ❌ Full testing and approval
- ❌ Credit contributors
- ❌ Review with the product owner
- ❌ Update Release Notes
- ❌ Release
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- Fixed the test suite for Drupal 11.4, where Manage display moved to /display/default.
Issue fork ds-3638655
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
rajab natshahComment #5
swentel commentedMerged in, thanks!
Comment #7
swentel commented