Skip to content

Commit

Permalink
Fix styling for inline form groups
Browse files Browse the repository at this point in the history
  • Loading branch information
rawilk committed Mar 22, 2023
1 parent 1c1afc8 commit 2b0a64b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/Components/FormGroupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]);
});
});
});

Expand Down

0 comments on commit 2b0a64b

Please sign in to comment.