补充工具区快速导航前缀文案

This commit is contained in:
萝卜
2026-03-19 10:18:50 +08:00
parent 0888be7672
commit 33cfd7f9c5
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 AdminPlatformOrderIndexToolGridJumpLinksShouldHaveVisiblePrefixTest 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_jump_links_should_have_visible_prefix(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertStringContainsString('data-role="po-tools-grid-jump-links-prefix"', $html);
$this->assertStringContainsString('快速定位:', $html);
}
}