From 82f2ebb3cf8e1c3ccc8512f5d2386b71a24ffe6a Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Tue, 21 May 2024 09:54:44 +0200 Subject: [PATCH] fix tests in CI --- tests/Feature/InboxTest.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/Feature/InboxTest.php b/tests/Feature/InboxTest.php index cbea672..d9def75 100644 --- a/tests/Feature/InboxTest.php +++ b/tests/Feature/InboxTest.php @@ -6,10 +6,9 @@ uses(RefreshDatabase::class); -it('returns a successful response', function () { - $response = $this->get(route('inbox')); - $response->assertStatus(200); -}); +it('returns a successful response') + ->livewire(Inbox::class) + ->assertOk(); it('listens to server restart event') ->livewire(Inbox::class) @@ -99,8 +98,6 @@ $messageOne = Message::factory()->create(); $messageTwo = Message::factory()->create(); - dump($messageOne->id, $messageTwo->id); - $this->livewire(Inbox::class, [$messageOne->id]) ->assertSet('selectedMessageId', $messageOne->id) ->call('selectNext')