补充平台订单页内导航使用说明

This commit is contained in:
萝卜
2026-03-19 12:00:54 +08:00
parent f53128c4f5
commit dbc639defe
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderIndexPageJumpLinksShouldHaveUsageNoteTest 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_page_jump_links_should_have_usage_note(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertStringContainsString('data-role="po-page-jump-note"', $html);
$this->assertStringContainsString('仅用于页内快速跳转,不会改变当前筛选状态。', $html);
}
}