Files
saasshop/tests/Feature/AdminPlatformOrderIndexToolGridShouldHaveIntroTextTest.php
2026-03-19 06:03:36 +08:00

34 lines
981 B
PHP

<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderIndexToolGridShouldHaveIntroTextTest 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_should_have_intro_text(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertStringContainsString('data-role="po-tools-grid-intro"', $html);
$this->assertStringContainsString('当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作。', $html);
}
}