style(admin): scope row-warn styles for dashboard and keep platform orders guards
This commit is contained in:
@@ -27,7 +27,8 @@ class AdminPlatformOrderIndexRowWarnStyleScopedTest extends TestCase
|
||||
$css = file_get_contents(public_path('css/admin-components.css'));
|
||||
|
||||
$this->assertIsString($css);
|
||||
$this->assertStringContainsString('.platform-orders-table .row-warn{', $css);
|
||||
// 允许同一套样式同时覆盖仪表盘最近订单(通过 [data-page="admin.dashboard"] 范围),但平台订单列表的 scope 仍必须存在。
|
||||
$this->assertStringContainsString('.platform-orders-table .row-warn', $css);
|
||||
|
||||
// 仅避免“全局 .row-warn{...}”这种写法(会污染其它页面)。
|
||||
$this->assertStringNotContainsString("\n.row-warn{", $css);
|
||||
|
||||
Reference in New Issue
Block a user