chore(admin): 快捷筛选区显示线索锁定提示并可清除

This commit is contained in:
萝卜
2026-03-14 04:44:20 +00:00
parent f7111e3940
commit e2dd646037
2 changed files with 54 additions and 13 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderQuickFilterShouldShowLeadLockHintTest extends TestCase
{
use RefreshDatabase;
protected function loginAsPlatformAdmin(): void
{
$this->seed();
$this->post('/admin/login', [
'email' => 'platform.admin@demo.local',
'password' => 'Platform@123456',
])->assertRedirect('/admin');
}
public function test_quick_filter_block_should_show_lead_lock_hint_when_lead_id_present(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders?lead_id=12');
$res->assertOk();
$res->assertSee('当前锁定线索:#12', false);
$res->assertSee('>清除<', false);
}
}