<?php

namespace Tests\Feature\Livewire;

use App\Livewire\RideListComponent;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Livewire\Livewire;
use Tests\TestCase;

class RideListComponentTest extends TestCase
{
    use RefreshDatabase;

    /** @test */
    public function component_can_render(): void
    {
        Livewire::test(RideListComponent::class)
            ->assertStatus(200)
            ->assertSee('RideListComponent');
    }

    /** @test */
    public function component_can_mount_successfully(): void
    {
        Livewire::test(RideListComponent::class)
            ->assertStatus(200);
    }

    /** @test */
    public function component_follows_thrillwiki_patterns(): void
    {
        Livewire::test(RideListComponent::class)
            ->assertViewIs('livewire.ride-list-component');
    }
}