补强摘要区快速导航语义标签
This commit is contained in:
@@ -666,10 +666,10 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="actions gap-10 mb-10" data-role="po-summary-jump-links" aria-label="平台订单摘要快捷导航">
|
<div class="actions gap-10 mb-10" data-role="po-summary-jump-links" aria-label="平台订单摘要快捷导航">
|
||||||
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-paid-no-receipt" href="#po-summary-card-paid-no-receipt">已付无回执</a>
|
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-paid-no-receipt" aria-label="定位到已付无回执摘要卡" href="#po-summary-card-paid-no-receipt">已付无回执</a>
|
||||||
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-reconcile-mismatch" href="#po-summary-card-reconcile-mismatch">对账不一致</a>
|
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-reconcile-mismatch" aria-label="定位到对账不一致摘要卡" href="#po-summary-card-reconcile-mismatch">对账不一致</a>
|
||||||
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-syncable" href="#po-summary-card-syncable">可同步</a>
|
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-syncable" aria-label="定位到可同步摘要卡" href="#po-summary-card-syncable">可同步</a>
|
||||||
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-renewal-missing-sub" href="#po-summary-card-renewal-missing-sub">续费缺订阅</a>
|
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-renewal-missing-sub" aria-label="定位到续费缺订阅摘要卡" href="#po-summary-card-renewal-missing-sub">续费缺订阅</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid-3 mb-20" id="po-summary-cards" data-role="po-summary-cards">
|
<div class="grid-3 mb-20" id="po-summary-cards" data-role="po-summary-cards">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Feature;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
class AdminPlatformOrderSummaryJumpLinksShouldHaveAriaLabelTest 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_order_summary_jump_links_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-jump-paid-no-receipt" aria-label="定位到已付无回执摘要卡"', $html);
|
||||||
|
$this->assertStringContainsString('data-role="po-summary-jump-reconcile-mismatch" aria-label="定位到对账不一致摘要卡"', $html);
|
||||||
|
$this->assertStringContainsString('data-role="po-summary-jump-syncable" aria-label="定位到可同步摘要卡"', $html);
|
||||||
|
$this->assertStringContainsString('data-role="po-summary-jump-renewal-missing-sub" aria-label="定位到续费缺订阅摘要卡"', $html);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user