chore(front): 对外平台官网样式外置到 platform.css + 护栏测试

This commit is contained in:
萝卜
2026-03-14 02:25:06 +00:00
parent 8c373b52dc
commit e1822e4389
4 changed files with 166 additions and 45 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class FrontPlatformPagesUseExternalCssTest extends TestCase
{
use RefreshDatabase;
public function test_platform_pages_should_link_platform_css_and_not_inline_style_block(): void
{
$res1 = $this->get('/platform');
$res1->assertOk();
$res1->assertSee('<link rel="stylesheet" href="/css/platform.css">', false);
$res1->assertDontSee('<style>', false);
$res2 = $this->get('/platform/plans');
$res2->assertOk();
$res2->assertSee('<link rel="stylesheet" href="/css/platform.css">', false);
$res2->assertDontSee('<style>', false);
}
}