补强已付无回执摘要说明顺序护栏

This commit is contained in:
萝卜
2026-03-19 10:53:44 +08:00
parent f2b74e55e6
commit 4f046a1820

View File

@@ -0,0 +1,32 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderReceiptSummaryCardFootnoteShouldAppearAfterTitleTest 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_paid_no_receipt_summary_card_footnote_should_appear_after_title(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertMatchesRegularExpression('/已付无回执订单[\s\S]*?data-role="po-summary-paid-no-receipt-footnote"/u', $html);
}
}