Deprecate ::assertWaitOnAjaxRequest() in favour of ::assertExpectedAjaxRequest()

Created on 14 November 2023, over 1 year ago
Updated 3 August 2024, 7 months ago

Problem/Motivation

Follow-up from 📌 Stabilize FunctionalJavascript testing AJAX: add ::assertExpectedAjaxRequest() Fixed . In that issue we added a new assertExpectedAjaxRequest() method, but didn't deprecate the old one.

Steps to reproduce

Proposed resolution

Convert all calls to assertWaitOnAjaxRequest() to assertExpectedAjaxRequest().

Add @deprecated and @trigger_error(....... E_USER_DEPRECATED) to the old method for removal in Drupal 11.

See https://www.drupal.org/about/core/policies/core-change-policies/drupal-d... for the format.

Remaining tasks

Convert to an MR
Add the deprecation notice

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component
PHPUnit 

Last updated 4 days ago

Created by

🇬🇧United Kingdom catch

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024