File size: 586 Bytes
1501522
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

namespace Tests\Feature;

use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\TestCase;

class DashboardViewTest extends TestCase
{
    use DatabaseTransactions;

    public function test_dashboard_displays_automation_panels(): void
    {
        $user = User::factory()->create();

        $this->actingAs($user)
            ->get(route('dashboard'))
            ->assertOk()
            ->assertSeeText('Automation Ops Board')
            ->assertSeeText('Cron Scheduler Status')
            ->assertSeeText('Readiness by platform');
    }
}