By mondrake on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.1.x
Introduced in version:
9.1.8
Issue links:
Description:
A WebAssert::elementTextEquals() has been introduced in the WebAssert class that extends Mink's WebAssert.
This method can be conveniently used in those cases where ::elementTextContains() need a stricter equality check vs the actually rendered text in a HTML element.
Example:
$this->assertSession()->elementTextEquals('xpath', '//div[contains(@class, "region-sidebar-first")]/div[contains(@class, "block-views")]/h2', 'Custom title');
Impacts:
Module developers