feat(front): 官网套餐页提交开通意向线索(PlatformLead)

This commit is contained in:
萝卜
2026-03-14 02:31:28 +00:00
parent e1822e4389
commit 249ffb3aba
7 changed files with 201 additions and 12 deletions

View File

@@ -9,16 +9,21 @@ class FrontPlatformPagesUseExternalCssTest extends TestCase
{
use RefreshDatabase;
public function test_platform_pages_should_link_platform_css_and_not_inline_style_block(): void
public function test_platform_index_should_use_external_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);
$res = $this->get('/platform');
$res->assertOk();
$res2 = $this->get('/platform/plans');
$res2->assertOk();
$res2->assertSee('<link rel="stylesheet" href="/css/platform.css">', false);
$res2->assertDontSee('<style>', false);
$res->assertSee('/css/platform.css', false);
$res->assertDontSee('<style>', false);
}
public function test_platform_plans_should_use_external_css_and_not_inline_style_block(): void
{
$res = $this->get('/platform/plans');
$res->assertOk();
$res->assertSee('/css/platform.css', false);
$res->assertDontSee('<style>', false);
}
}