feat(platform-orders): 回执摘要卡数字支持一键跳转筛选(含测试)

This commit is contained in:
萝卜
2026-03-11 00:14:45 +00:00
parent eaa0e8ec52
commit b2f09f4c92
2 changed files with 40 additions and 2 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderReceiptSummaryCardLinksTest 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_receipt_summary_card_links(): void
{
$this->loginAsPlatformAdmin();
$this->get('/admin/platform-orders')
->assertOk()
->assertSee('有回执订单 / 回执总额')
->assertSee('无回执订单')
->assertSee('receipt_status=has')
->assertSee('receipt_status=none');
}
}