UniformFlow/tests/Feature/ExampleTest.php

34 lines
1005 B
PHP

<?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class ExampleTest extends TestCase
{
use RefreshDatabase;
/**
* A basic test example.
*/
public function test_the_application_returns_a_successful_response(): void
{
$response = $this->actingAs(User::factory()->create(['is_admin' => true]))->get('/dashboard');
$response->assertStatus(200)
->assertSee('Admin dashboard')
->assertSee('Stock health')
->assertSee('Issued by department')
->assertSee('Recent activity')
->assertSee('Detailed monthly movement summary')
->assertSee('monthly-movement-dialog', false)
->assertSee('dashboard-live-time', false)
->assertSee('SLST')
->assertSee('images/glitzpark_logo.jpg', false)
->assertSee('rel="icon"', false)
->assertSee('data-theme-toggle', false);
}
}