Test updates for D10 field edit form

Created on 22 April 2024, 7 months ago
Updated 9 May 2024, 7 months ago

Problem/Motivation

In Drupal10, the URL to edit file field details has changed slightly,
From:
admin/structure/types/manage/[nodeType]/fields/node.[nodeType].[fieldName]/storage
To:
admin/structure/types/manage/[nodeType]/fields/node.[nodeType].[fieldName]

Because of that URL change, the automated test suite now produces several related failures.

Additionally, the t() function returns a TranslateableMarkup object instead of a string, which causes many failures in the test suite. Since these tests are not for the translation service, they should be removed (following the lead of the Address module on this πŸ“Œ Remove t() from tests that are not testing translation Fixed ).

Steps to reproduce

Install the module on a fresh D10 site and run the automated test suite.

Proposed resolution

Attached patch changes the URL for file field edit details, and removes t() from tests where it causes errors. It also updates the submit button text to match current text in core, as well as adjusts the field identifiers where needed.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

General

Created by

πŸ‡ΊπŸ‡ΈUnited States rschwab

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