Make methods in WebAssert return matching elements.

Created on 3 October 2017, almost 7 years ago
Updated 11 June 2024, 3 months ago

Problem/Motivation

(Why the issue was filed, steps to reproduce the problem, etc.)

Proposed resolution

Most methods in the base mink web assert class return matching elements where appropriate.
However our methods in \Drupal\Tests\WebAssert do not

Remaining tasks

Review \Drupal\Tests\WebAssert and when methods are matching an element, return the element.

E.g.

  • linkExists
  • linkByHrefExists
  • hiddenFieldExists
  • hiddenFieldValueEquals
  • hiddenFieldValueNotEquals

User interface changes

None

API changes

void returns now return something

Data model changes

None

📌 Task
Status

Needs work

Version

11.0 🔥

Component
PHPUnit 

Last updated less than a minute ago

Created by

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024