seed(); $this->post('/admin/login', [ 'email' => 'platform.admin@demo.local', 'password' => 'Platform@123456', ])->assertRedirect('/admin'); } public function test_blocked_hint_should_include_link_to_sync_failed_set(): void { $this->loginAsPlatformAdmin(); // 构造一个会触发 clear_sync_errors 被阻断的筛选:不在失败集合。 $res = $this->get('/admin/platform-orders'); $res->assertOk(); $html = (string) $res->getContent(); $this->assertStringContainsString('data-role="clear-sync-errors-blocked-hint"', $html); $this->assertStringContainsString('切到同步失败集合', $html); $this->assertStringContainsString('sync_status=failed', $html); } }