补强已付无回执动作语义标签支持

This commit is contained in:
萝卜
2026-03-19 05:10:39 +08:00
parent c02c641b3e
commit 6720a8a467
4 changed files with 41 additions and 2 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderToolsPaidNoReceiptHintActionsShouldHaveAriaLabelTest 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_hint_actions_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('aria-label="定位到批量同步订阅工具"', $html);
$this->assertStringContainsString('aria-label="切到有回执集合"', $html);
$this->assertStringContainsString('aria-label="取消只看可同步(先治理)"', $html);
}
}