<?php

namespace Tests\Feature;

use App\Models\User;
use Tests\TestCase;

class KnowledgeGraphPagesTest extends TestCase
{
    public function test_knowledge_graph_management_page_loads()
    {
        // Assuming authentication is required, we might need to act as a user.
        // If Filament uses a specific guard or user model, adjust accordingly.
        // For now, let's try accessing it. If it redirects to login, we'll know.
        
        // Filament usually requires a user with specific permissions.
        // Let's assume a basic user for now or check if we can mock the auth.
        
        // Since I don't have the full auth context, I'll try to hit the page.
        // If it's protected, it should redirect (302) or return 401/403.
        // A 500 error is what we want to avoid.
        
        $response = $this->get('/admin/knowledge-graph-management');

        // If it redirects to login, that's "success" in terms of "no 500 error".
        if ($response->status() === 302) {
             $response->assertStatus(302);
        } else {
             $response->assertStatus(200);
        }
    }

    public function test_knowledge_relation_management_page_loads()
    {
        $response = $this->get('/admin/knowledge-relation-management');

        if ($response->status() === 302) {
             $response->assertStatus(302);
        } else {
             $response->assertStatus(200);
        }
    }
}
