澄清平台订单回执筛选广义无回执文案
This commit is contained in:
@@ -418,7 +418,7 @@
|
|||||||
<select name="receipt_status">
|
<select name="receipt_status">
|
||||||
<option value="">全部回执状态</option>
|
<option value="">全部回执状态</option>
|
||||||
<option value="has" @selected(($filters['receipt_status'] ?? '') === 'has')>有回执</option>
|
<option value="has" @selected(($filters['receipt_status'] ?? '') === 'has')>有回执</option>
|
||||||
<option value="none" @selected(($filters['receipt_status'] ?? '') === 'none')>无回执</option>
|
<option value="none" @selected(($filters['receipt_status'] ?? '') === 'none')>无回执(广义)</option>
|
||||||
</select>
|
</select>
|
||||||
<select name="refund_status">
|
<select name="refund_status">
|
||||||
<option value="">全部退款状态</option>
|
<option value="">全部退款状态</option>
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Feature;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
class AdminPlatformOrderFiltersReceiptStatusOptionShouldClarifyBroadNoneTest 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_filters_receipt_status_option_should_clarify_broad_none_scope(): void
|
||||||
|
{
|
||||||
|
$this->loginAsPlatformAdmin();
|
||||||
|
|
||||||
|
$res = $this->get('/admin/platform-orders');
|
||||||
|
$res->assertOk();
|
||||||
|
|
||||||
|
$html = (string) $res->getContent();
|
||||||
|
$this->assertStringContainsString('无回执(广义)', $html);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user