Skip to content

Commit 379b102

Browse files
committed
[DomCrawler][FrameworkBundle] Add assertAnySelectorText*
1 parent 86e71a4 commit 379b102

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

testing.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,9 +982,15 @@ Crawler Assertions
982982
``assertSelectorTextContains(string $selector, string $text, string $message = '')``/``assertSelectorTextNotContains(string $selector, string $text, string $message = '')``
983983
Asserts that the first element matching the given selector does (not)
984984
contain the expected text.
985+
``assertAnySelectorTextContains(string $selector, string $text, string $message = '')``/``assertAnySelectorTextNotContains(string $selector, string $text, string $message = '')``
986+
Asserts that any element matching the given selector does (not)
987+
contain the expected text.
985988
``assertSelectorTextSame(string $selector, string $text, string $message = '')``
986989
Asserts that the contents of the first element matching the given
987990
selector does (not) equal the expected text.
991+
``assertAnySelectorTextSame(string $selector, string $text, string $message = '')``
992+
Asserts that the any element matching the given selector does equal the
993+
expected text.
988994
``assertPageTitleSame(string $expectedTitle, string $message = '')``
989995
Asserts that the ``<title>`` element is equal to the given title.
990996
``assertPageTitleContains(string $expectedTitle, string $message = '')``
@@ -1002,6 +1008,11 @@ Crawler Assertions
10021008

10031009
The ``assertSelectorCount()`` method was introduced in Symfony 6.3.
10041010

1011+
.. versionadded:: 6.4
1012+
1013+
The ``assertAnySelectorTextContains()``, ``assertAnySelectorTextNotContains()``
1014+
and ``assertAnySelectorTextSame()`` were introduced in Symfony 6.4.
1015+
10051016
.. _mailer-assertions:
10061017

10071018
Mailer Assertions

0 commit comments

Comments
 (0)