Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 2b0a64b

Browse files
committed
Fix styling for inline form groups
1 parent 1c1afc8 commit 2b0a64b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/Components/FormGroupTest.php

+8-3
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,16 @@
7878
Route::get('/test', fn () => Blade::render($template));
7979

8080
get('/test')
81-
->assertElementExists('div', function (AssertElement $div) {
82-
$div->has('class', 'form-group--inline')
83-
->contains('div', [
81+
->assertElementExists('.form-group', function (AssertElement $div) {
82+
$div->contains('div', [
83+
'class' => 'form-group--inline',
84+
]);
85+
86+
$div->find('.form-group--inline', function (AssertElement $content) {
87+
$content->contains('div', [
8488
'class' => 'form-group__content--inline',
8589
]);
90+
});
8691
});
8792
});
8893

0 commit comments

Comments
 (0)