Most WebAssert Exists and notExists methods should allow passing a $container

Created on 11 June 2024, 11 months ago
Updated 12 September 2024, 8 months ago

Problem/Motivation

Some methods in WebAssert allow the scope to be limited to a TraversableElement $container, yet others do not. They should be consistent.

Currently supported:

  • buttonExists
  • buttonNotExists
  • selectExists
  • optionExists
  • optionNotExists
  • hiddenFieldExists
  • hiddenFieldNotExists
  • hiddenFieldValueEquals
  • hiddenFieldValueNotEquals
  • fieldDisabled
  • fieldEnabled

Not supported:

  • linkExists
  • linkExistsExact
  • linkNotExists
  • linkNotExistsExact
  • linkByHrefExists
  • linkByHrefExistsExact
  • linkByHrefNotExists
  • linkByHrefNotExistsExact

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Feature request
Status

Needs work

Version

11.0 🔥

Component
PHPUnit 

Last updated about 13 hours ago

Created by

🇦🇺Australia mstrelan

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024