From 447b6acd9219e198f490420a9583137ee22a9ffd Mon Sep 17 00:00:00 2001 From: qiuxiang <394405259@qq.com> Date: Mon, 14 Sep 2026 12:06:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E7=BD=B2=E5=90=8E?= =?UTF-8?q?=E8=B4=A6=E5=8D=95=E9=A1=B5=E9=9D=A2=E5=85=AC=E5=85=B1=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E7=BC=93=E5=AD=98=E7=89=88=E6=9C=AC=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../layouts/partials/frontend-runtime.blade.php | 4 ++-- tests/Feature/Business/PagesTest.php | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/resources/views/components/layouts/partials/frontend-runtime.blade.php b/resources/views/components/layouts/partials/frontend-runtime.blade.php index 18d99434..5e421039 100644 --- a/resources/views/components/layouts/partials/frontend-runtime.blade.php +++ b/resources/views/components/layouts/partials/frontend-runtime.blade.php @@ -1,2 +1,2 @@ - - + + diff --git a/tests/Feature/Business/PagesTest.php b/tests/Feature/Business/PagesTest.php index 18d9cefd..71a576d8 100644 --- a/tests/Feature/Business/PagesTest.php +++ b/tests/Feature/Business/PagesTest.php @@ -117,6 +117,20 @@ class PagesTest extends FeatureTestCase ->assertSee('public/js/business/pages.min.js', false); } + public function testDouyinWorkspaceUsesMatchingRuntimeAssetVersions(): void + { + $this->user->attachPermission(Permission::where('name', 'read-admin-panel')->firstOrFail()); + + $this->loginAs()->get(route('business.pages.show', [ + 'section' => 'billing-transactions', 'page' => 'store-receiving-bills', 'tab' => 'douyin', + ]))->assertOk() + ->assertSee('business-blank-page', false) + ->assertSee('public/js/manifest.js?id=' . md5_file(public_path('js/manifest.js')), false) + ->assertSee('public/js/vendor.js?id=' . md5_file(public_path('js/vendor.js')), false) + ->assertSee('public/js/business/pages.min.js?id=' . md5_file(public_path('js/business/pages.min.js')), false) + ->assertDontSee('public/js/vendor.js?v=', false); + } + public function testDouyinAccountBillsEndpointReadsTheFixedTouTiaoChannel(): void { $this->user->attachPermission( -- 2.47.2