Skip to content

Conversation

@helloiamlukas
Copy link
Contributor

@helloiamlukas helloiamlukas commented Sep 20, 2023

This pull request allows the use of the assertHtml5, assertElementExists and assertFormExists functions on Illuminate\Testing\TestView objects.

This adds the possibility to test Blade views. Example:

$this->view('navigation')
    ->assertElementExists('nav > ul', function(AssertElement $ul) {
        $ul->contains('li', [
            'class' => 'active',
        ]);
    });

@sinnbeck sinnbeck merged commit 14364cc into sinnbeck:main Jan 3, 2024
@sinnbeck
Copy link
Owner

sinnbeck commented Jan 3, 2024

Sorry for the late merge. But thanks for the very thorough PR with nice features and tests!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants