Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,8 @@ Crawler Assertions
``assertSelectorExists(string $selector, string $message = '')``/``assertSelectorNotExists(string $selector, string $message = '')``
Asserts that the given selector does (not) match at least one element
in the response.
``assertSelectorCount(int $expectedCount, string $selector, string $message = '')``
Asserts that the expected number of selector elements are in the response
``assertSelectorTextContains(string $selector, string $text, string $message = '')``/``assertSelectorTextNotContains(string $selector, string $text, string $message = '')``
Asserts that the first element matching the given selector does (not)
contain the expected text.
Expand All @@ -1039,6 +1041,10 @@ Crawler Assertions
Asserts that value of the field of the first form matching the given
selector does (not) equal the expected value.

.. versionadded:: 6.3

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

Mailer Assertions
.................

Expand Down