diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 5dd92b2..859339d 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1197,7 +1197,7 @@ @endphp
-
当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作。
+
当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作。
导出
diff --git a/tests/Feature/AdminPlatformOrderIndexToolGridIntroShouldHaveAriaLabelTest.php b/tests/Feature/AdminPlatformOrderIndexToolGridIntroShouldHaveAriaLabelTest.php new file mode 100644 index 0000000..a4c52fb --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexToolGridIntroShouldHaveAriaLabelTest.php @@ -0,0 +1,32 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_tool_grid_intro_should_have_aria_label(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-tools-grid-intro" aria-label="平台订单工具区说明"', $html); + } +}