feat(platform-orders): 可同步订单摘要卡数字支持一键跳转筛选(含测试)

This commit is contained in:
萝卜
2026-03-11 00:18:41 +00:00
parent 778ab4dd90
commit 308cc45e81
2 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderSyncableSummaryCardLinkTest 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_platform_orders_page_shows_syncable_orders_summary_card_link(): void
{
$this->loginAsPlatformAdmin();
$this->get('/admin/platform-orders')
->assertOk()
->assertSee('可同步订单')
->assertSee('syncable_only=1');
}
}