Skip to content

Integration Tests: DOM Assertion class #27607

Closed
@lbajsarowicz

Description

@lbajsarowicz

Description (*)

We have plenty of integration tests that make assertions on HTML code:
image

With assertContains or preg_match. This is not the right approach for making assertions on HTML and the correct approach should be possible. The right approach is based on DOM tree.

Example:
https://github.com/magento/magento2/pull/27606/files#diff-dcb208981e520970637c75ff2d89eafcR169-R173

Expected behavior (*)

We need the DOM assertion class to be introduced to Integration Tests Framework

Benefits

Additional information

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions