Skip to content

Commit

Permalink
add containsText to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
balping committed Feb 10, 2023
1 parent 32ba65a commit dc9270e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {})` |

Expand Down

0 comments on commit dc9270e

Please sign in to comment.