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(