From 2b0a64ba9b1f12f7044f85f86595c9c269131ad7 Mon Sep 17 00:00:00 2001 From: Randall Wilk Date: Wed, 22 Mar 2023 07:40:34 -0500 Subject: [PATCH] Fix styling for inline form groups --- tests/Components/FormGroupTest.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/Components/FormGroupTest.php b/tests/Components/FormGroupTest.php index e3fab39..0c8a02a 100644 --- a/tests/Components/FormGroupTest.php +++ b/tests/Components/FormGroupTest.php @@ -78,11 +78,16 @@ Route::get('/test', fn () => Blade::render($template)); get('/test') - ->assertElementExists('div', function (AssertElement $div) { - $div->has('class', 'form-group--inline') - ->contains('div', [ + ->assertElementExists('.form-group', function (AssertElement $div) { + $div->contains('div', [ + 'class' => 'form-group--inline', + ]); + + $div->find('.form-group--inline', function (AssertElement $content) { + $content->contains('div', [ 'class' => 'form-group__content--inline', ]); + }); }); });