补充摘要导航筛选条件入口

This commit is contained in:
萝卜
2026-03-20 00:31:16 +08:00
parent 0f53c6851d
commit 82b17d913d
2 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderSummaryJumpLinksShouldIncludeFiltersShortcutTest 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_order_summary_jump_links_should_include_filters_shortcut(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertStringContainsString('data-role="po-summary-jump-filters"', $html);
$this->assertStringContainsString('href="#filters"', $html);
$this->assertStringContainsString('aria-label="定位到筛选条件"', $html);
$this->assertStringContainsString('title="回到筛选区调整范围"', $html);
$this->assertStringContainsString('>筛选条件<', $html);
}
}