Skip to content

Commit

Permalink
Adjust tests for new Loading blade
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe committed Sep 25, 2024
1 parent 292ac8b commit 79227b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/views/components/includes/loading.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}}
wire:loading.class.remove="hidden d-none"
>
<td wire:key="{{ $tableName }}-loader-column" colspan="{{ $colCount }}">
<td colspan="{{ $colCount }}" wire:key="{{ $tableName }}-loader-column" >
<div class="h-min self-center align-middle text-center">
<div class="lds-hourglass"
{{
Expand Down
4 changes: 2 additions & 2 deletions tests/Traits/Visuals/LoadingPlaceholderVisualsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function test_can_see_placeholder_section(): void
{
Livewire::test(PetsTableLoadingPlaceholder::class)
->call('setPerPageAccepted', [1, 5, 10])
->assertSeeHtml('tr wire:key="table-loader" class="hidden d-none"')
->assertSeeHtml('tr wire:key="table-loader')
->call('setPerPage', 5);
}

Expand All @@ -21,7 +21,7 @@ public function test_can_see_placeholder_custom_text(): void
Livewire::test(PetsTableLoadingPlaceholder::class)
->call('setPerPageAccepted', [1, 5, 10])
->assertSeeHtmlInOrder([
'<tr wire:key="table-loader" class="hidden d-none"',
'<tr wire:key="table-loader"',
'<td colspan="',
'<div class="h-min self-center align-middle text-center"',
'<div class="lds-hourglass"',
Expand Down

0 comments on commit 79227b0

Please sign in to comment.