补强平台订单动作组件语义能力护栏

This commit is contained in:
萝卜
2026-03-19 05:13:23 +08:00
parent 6720a8a467
commit 527c59215f

View File

@@ -0,0 +1,23 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderActionPartialsShouldSupportAriaLabelTest extends TestCase
{
use RefreshDatabase;
public function test_action_partials_should_support_aria_label_attributes(): void
{
$summaryPartial = file_get_contents(resource_path('views/admin/platform_orders/_summary_text_link.blade.php'));
$toolPartial = file_get_contents(resource_path('views/admin/platform_orders/_tool_anchor_button.blade.php'));
$this->assertStringContainsString('aria-label', $summaryPartial);
$this->assertStringContainsString('$ariaLabel', $summaryPartial);
$this->assertStringContainsString('aria-label', $toolPartial);
$this->assertStringContainsString('$ariaLabel', $toolPartial);
}
}