chore(front): 对外平台官网样式外置到 platform.css + 护栏测试
This commit is contained in:
24
tests/Feature/FrontPlatformPagesUseExternalCssTest.php
Normal file
24
tests/Feature/FrontPlatformPagesUseExternalCssTest.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user