补强已付无回执说明语义标签
This commit is contained in:
@@ -1110,7 +1110,7 @@
|
|||||||
'label' => '取消只看可同步(先治理)',
|
'label' => '取消只看可同步(先治理)',
|
||||||
])
|
])
|
||||||
</div>
|
</div>
|
||||||
<div class="muted governance-block-footnote" data-role="po-tools-paid-no-receipt-footnote">收费闭环优先:先补回执,再推进同步。</div>
|
<div class="muted governance-block-footnote" data-role="po-tools-paid-no-receipt-footnote" aria-label="已付无回执治理优先级说明">收费闭环优先:先补回执,再推进同步。</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Feature;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
class AdminPlatformOrderToolsPaidNoReceiptFootnoteShouldHaveAriaLabelTest 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_tools_paid_no_receipt_footnote_should_have_aria_label(): void
|
||||||
|
{
|
||||||
|
$this->loginAsPlatformAdmin();
|
||||||
|
|
||||||
|
$res = $this->get('/admin/platform-orders?syncable_only=1&receipt_status=none');
|
||||||
|
$res->assertOk();
|
||||||
|
|
||||||
|
$html = (string) $res->getContent();
|
||||||
|
$this->assertStringContainsString('data-role="po-tools-paid-no-receipt-footnote" aria-label="已付无回执治理优先级说明"', $html);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user