23 lines
636 B
PHP
23 lines
636 B
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use Illuminate\Support\Facades\Blade;
|
|
use Tests\TestCase;
|
|
|
|
class StatusComponentTest extends TestCase
|
|
{
|
|
public function test_pending_pill_uses_cyan_tone(): void
|
|
{
|
|
$html = Blade::render('<x-status-pill status="pending">Init</x-status-pill>');
|
|
$this->assertStringContainsString('text-cyan', $html);
|
|
$this->assertStringContainsString('bg-cyan/10', $html);
|
|
}
|
|
|
|
public function test_pending_dot_uses_cyan(): void
|
|
{
|
|
$html = Blade::render('<x-status-dot status="pending" :ping="true" />');
|
|
$this->assertStringContainsString('bg-cyan', $html);
|
|
}
|
|
}
|