补强已付无回执摘要说明语义标签
This commit is contained in:
@@ -850,7 +850,7 @@
|
||||
])
|
||||
</div>
|
||||
<div class="muted muted-xs">已支付且无 payment_summary / payment_receipts,优先进入补回执治理集合</div>
|
||||
<div class="muted governance-block-footnote" data-role="po-summary-paid-no-receipt-footnote">收费闭环优先:建议先处理该集合,再推进同步与批量动作。</div>
|
||||
<div class="muted governance-block-footnote" data-role="po-summary-paid-no-receipt-footnote" aria-label="已付无回执摘要优先级说明">收费闭环优先:建议先处理该集合,再推进同步与批量动作。</div>
|
||||
<div class="muted muted-xs">
|
||||
@include('admin.platform_orders._summary_text_link', [
|
||||
'role' => 'po-summary-link-view-receipt-orders',
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class AdminPlatformOrderReceiptSummaryCardFootnoteShouldHaveAriaLabelTest 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_have_aria_label(): void
|
||||
{
|
||||
$this->loginAsPlatformAdmin();
|
||||
|
||||
$res = $this->get('/admin/platform-orders');
|
||||
$res->assertOk();
|
||||
|
||||
$html = (string) $res->getContent();
|
||||
$this->assertStringContainsString('data-role="po-summary-paid-no-receipt-footnote" aria-label="已付无回执摘要优先级说明"', $html);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user