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

  1. Run the Display Suite phpunit job against Drupal 11.4.x (the default CI target), or open admin/structure/types/manage/article/display on an 11.4 site with Display Suite enabled.
  2. The page lists view modes. There is no Save button and no Layout select.

Proposed resolution

Tests only, no module code changes.

  • Open .../display/default wherever 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 posting display_modes_custom in 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

Command icon 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

rajab natshah created an issue. See original summary.

rajab natshah’s picture

Status: Active » Needs review

  • swentel committed 57cbda76 on 8.x-3.x authored by rajab natshah
    test: #3638655 Fix the test suite for Drupal 11.4 (Manage display moved...
swentel’s picture

Status: Needs review » Fixed

Merged in, thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

swentel’s picture

Status: Fixed » Closed (fixed)