补充工具区说明中的快速导航引导

This commit is contained in:
萝卜
2026-03-19 07:37:38 +08:00
parent 3b1ad55ec1
commit 7af59e4d17
2 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderIndexToolGridIntroShouldMentionJumpLinksTest extends TestCase
{
use RefreshDatabase;
protected function loginAsPlatformAdmin(): void
{
$this->seed();
$this->post('/admin/login', [
'email' => 'platform.admin@demo.local',
'password' => 'Platform@123456',
])->assertRedirect('/admin');
}
public function test_platform_orders_tool_grid_intro_should_mention_jump_links(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertStringContainsString('也可使用上方快速定位导航直达目标工具组。', $html);
}
}