diff --git a/README.md b/README.md index 97ffe45..012f896 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,8 @@ Pause the test for the specified number of milliseconds. - [assertAttribute](#assertattribute) - [assertDontSee](#assertdontsee) - [assertDontSee](#assertdontsee) +- [assertVisible](#assertvisible) +- [assertMissing](#assertmissing) #### assertAttribute @@ -92,3 +94,29 @@ test('assert does not see', function () { ->assertDontSee('we are a streaming service'); }); ``` + +#### assertVisible + +Assert that an element with the given selector is visible: + +```php +test('assert visible', function () { + $url = 'https://laravel.com'; + + $this->visit($url) + ->assertVisible('h1:visible'); +}); +``` + +#### assertMissing + +Assert that an element with the given selector is hidden: + +```php +test('assert missing', function () { + $url = 'https://laravel.com'; + + $this->visit($url) + ->assertMissing('a.hidden'); +}); +```