补强摘要链接组件双属性兼容护栏
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Feature;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
class AdminPlatformOrderSummaryTextLinkShouldKeepDataRoleAndAriaLabelTest extends TestCase
|
||||||
|
{
|
||||||
|
use RefreshDatabase;
|
||||||
|
|
||||||
|
public function test_summary_text_link_partial_should_keep_data_role_and_aria_label_support_together(): void
|
||||||
|
{
|
||||||
|
$partial = file_get_contents(resource_path('views/admin/platform_orders/_summary_text_link.blade.php'));
|
||||||
|
|
||||||
|
$this->assertStringContainsString('data-role="{{ $role ??', $partial);
|
||||||
|
$this->assertStringContainsString('aria-label="{{ $ariaLabel }}"', $partial);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user