Fix DateRecurFieldSettingsTest to use status message assertions instead of exact save text

Created on 5 September 2025, about 1 month ago

Problem/Motivation

Functional tests in DateRecurFieldSettingsTest fail because they assert an exact flash message ("Saved foo configuration.") that changed in Drupal core. The message wording/case now differs, so Mink cannot find the text.

Steps to reproduce

  1. Run the functional test suite for date_recur.
  2. Observe 4 failures in DateRecurFieldSettingsTest where the save confirmation text is asserted.

Steps to reproduce

  1. Run the functional test suite for date_recur.
  2. Observe 4 failures in DateRecurFieldSettingsTest where the save confirmation text is asserted.

Proposed resolution

  • Replace brittle page text assertions with status message assertions that don’t depend on exact wording:
    $this->assertSession()->statusMessageContains('Saved', 'status');
πŸ“Œ Task
Status

Active

Version

3.9

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada joelpittet Vancouver

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024