Files
saasshop/tests/Feature/AdminJsDashboardCardsWidthConsistencySelectorsShouldExistTest.php

23 lines
727 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminJsDashboardCardsWidthConsistencySelectorsShouldExistTest extends TestCase
{
use RefreshDatabase;
public function test_admin_js_should_keep_dashboard_selectors_for_future_enhancements(): void
{
$js = (string) file_get_contents(public_path('js/admin.js'));
// 需求澄清后:不再做“高度对齐”的 JSminHeight避免误解/副作用。
$this->assertStringNotContainsString('minHeight', $js);
// 并留下显式注释,说明当前采用 CSS Grid 处理“宽度一致”。
$this->assertStringContainsString('列宽一致', $js);
}
}