feat(js): #filters锚点跳转自动展开平台订单筛选面板

This commit is contained in:
萝卜
2026-03-17 16:47:03 +08:00
parent f267d251ed
commit 6d94583231
2 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminJsShouldIncludeAutoOpenPlatformOrderFiltersOnAnchorTest extends TestCase
{
use RefreshDatabase;
public function test_admin_js_should_include_auto_open_filters_logic(): void
{
$js = file_get_contents(public_path('js/admin.js'));
$this->assertIsString($js);
// 关键口径hash=#filters 时,自动展开 #filtersdetails
$this->assertStringContainsString("#filters", $js);
$this->assertStringContainsString("location.hash", $js);
$this->assertStringContainsString("d.open = true", $js);
}
}