auto(agent): Run expanded local discovery and continue with next actionable task

This commit is contained in:
OpenClaw 2026-03-06 15:39:11 +00:00
parent e238123393
commit 6dceec1893
14 changed files with 313 additions and 12 deletions

View file

@ -1,6 +1,24 @@
import { test, expect } from '@playwright/test';
// Einfacher HTTP-Test ohne Playwright
// Funktion zum Senden einer HTTP-Anfrage
async function testHealthEndpoint() {
try {
const response = await fetch('http://localhost:3000/health');
if (response.status === 200) {
console.log('Integration test passed: API server is running and healthy');
return true;
} else {
console.error(`Integration test failed: Expected status 200, got ${response.status}`);
return false;
}
} catch (error) {
console.error('Integration test failed:', error.message);
return false;
}
}
test('API server starts and returns 200', async ({ page }) => {
await page.goto('http://localhost:3000/api/health');
await expect(page.status()).toBe(200);
// Führe den Test aus
testHealthEndpoint().then(success => {
if (!success) {
process.exit(1);
}
});