From dc9270e0ed168cca543590d2e64ee6f0237c4919 Mon Sep 17 00:00:00 2001 From: balping Date: Fri, 10 Feb 2023 15:18:28 +0100 Subject: [PATCH] add containsText to readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7a2fb6c..9c2dea4 100644 --- a/README.md +++ b/README.md @@ -371,8 +371,10 @@ Livewire::test(UserForm::class) | `->isDiv()` | Magic method. Same as `->is('div')` | | `->contains($selector, $attributes, $count)` | Checks for any children of the current element | | `->containsDiv, ['class' => 'foo'], 3)` | Magic method. Same as `->contains('div', ['class' => 'foo'], 3)` | +| `->containsText($needle, $ignoreCase)` | Checks if the element's text content contains a specified string | | `->doesntContain($selector, $attributes)` | Ensures that there are no matching children | | `->doesntContainDiv, ['class' => 'foo'])` | Magic method. Same as `->doesntContain('div', ['class' => 'foo'])` | +| `->doesntContainText($needle, $ignoreCase)` | Checks if the element's text content doesn't contain a specified string | | `->find($selector, $callback)` | Find a specific child element and get a new AssertElement. Returns the first match. | | `->findDiv(fn (AssertElement $element) => {})` | Magic method. Same as `->find('div', fn (AssertElement $element) => {})` |