feat(platform_orders): add cross links between receipt summary cards

This commit is contained in:
萝卜
2026-03-14 21:43:05 +00:00
parent 6e48c47288
commit fe6e8d5d0b
2 changed files with 39 additions and 0 deletions

View File

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