refactor: 修复知识库和操作指引

This commit is contained in:
2026-03-13 14:32:37 +08:00
parent bbe8e60646
commit 58f42de9df
88 changed files with 3387 additions and 2472 deletions

View File

@@ -21,13 +21,13 @@ class TerminalResourceTest extends TestCase
protected function setUp(): void
{
parent::setUp();
// 创建测试用户并赋予管理员权限
$this->user = User::factory()->create();
// 设置为Filament管理员
config(['filament.auth.guard' => 'web']);
$this->actingAs($this->user);
}
@@ -62,7 +62,7 @@ class TerminalResourceTest extends TestCase
'code' => 'TEST-0001',
'ip_address' => '192.168.1.100',
'station_id' => 1,
'diagram_url' => 'https://example.com/diagram.png',
'diagram_url' => 'https://example.com/diagram.html',
'display_config' => [
'resolution' => '1920x1080',
'refresh_rate' => '60',
@@ -250,7 +250,7 @@ class TerminalResourceTest extends TestCase
// 测试分组功能是否可用
$component = Livewire::test(ListTerminals::class);
// 验证表格可以正常渲染
$component->assertSuccessful();
}