Problem/Motivation

The Environment Indicator module is designed to visually indicate to users which environment they are on (e.g., development, staging, production). This functionality helps prevent potentially catastrophic issues by ensuring users are aware of the environment they're working in. If the module fails, it could have serious consequences for site owners.

At the same time, it’s essential that the Environment Indicator module does not interfere with the functionality of other modules that users depend on, such as the Workspaces module. Recent reports indicate that workspace indicator colors in the toolbar are being overwritten by the Environment Indicator, potentially confusing users by displaying the same color for all workspaces.

Module maintainers face a significant challenge in testing each merge request across all possible scenarios, as this is time-consuming and can slow development progress. By adding automated PHPUnit functional tests, we can help maintainers ensure compatibility with other modules, like Workspaces, and increase confidence when merging new changes.

See #3463388: Foreground color setting broken for toolbar integration.

Steps to reproduce

  1. Install the Environment Indicator module.
  2. Install and enable the Workspaces module.
  3. Configure distinct workspace colors in the Workspaces module.
  4. Observe the toolbar when switching between workspaces.

Proposed resolution

  • Develop PHPUnit functional tests to verify compatibility between the Environment Indicator module and the Workspaces module.
  • Specifically, ensure that:
    • Workspace-specific indicator colors remain distinct and unaffected by the Environment Indicator.
    • The Environment Indicator continues to function correctly without interfering with the Workspaces module.

Remaining tasks

Create tests

User interface changes

N/A

API changes

N/A

Data model changes

N/A

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

trackleft2 created an issue. See original summary.

trackleft2’s picture

Version: 4.x-dev » 5.0.x-dev