feat(admin-dashboard): sync trend/billing card height with recent orders

This commit is contained in:
萝卜
2026-03-16 23:29:45 +08:00
parent 9dc281f48e
commit 7f1d234393
4 changed files with 123 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminJsDashboardCardsHeightSyncShouldUseRecentOrdersHeightTest extends TestCase
{
use RefreshDatabase;
public function test_admin_js_should_include_dashboard_height_sync_selectors(): void
{
$js = (string) file_get_contents(public_path('js/admin.js'));
$this->assertStringContainsString('dashboard-card-recent-platform-orders', $js);
$this->assertStringContainsString('dashboard-card-trend', $js);
$this->assertStringContainsString('dashboard-card-billing-workbench', $js);
}
}