'test@example.com']); $user->id = 1; Auth::setUser($user); app()->instance(ChangelogService::class, new class extends ChangelogService { public function getEntriesForUser(User $user): Collection { return collect([ (object) [ 'tag_name' => 'v1.0.0', 'title' => 'Test Release', 'content' => 'Release notes', 'content_html' => '
Release notes
', 'published_at' => Carbon::parse('2026-05-01'), 'is_read' => false, ], ]); } public function getUnreadCountForUser(User $user): int { return 1; } }); $component = Livewire::test(SettingsDropdown::class, ['trigger' => 'changelog-sidebar']) ->call('openWhatsNewModal') ->assertSee("What's new", false) ->assertSee('Test Release') ->assertSee('Mark read') ->assertSeeHtml('z-[99]') ->assertSeeHtml('closeWhatsNewModal'); // Single-release layout: no nested card chrome / unread left accent bar expect($component->html()) ->not->toContain('dark:bg-raised') ->not->toContain('w-0.5 bg-accent'); });