test: 40 integration tests with fixture server

Tests all commands against local Bun test server serving HTML fixtures.
Covers navigation, content extraction, JS/CSS inspection, form interaction,
SPA rendering, console/network buffers, tabs, screenshots, responsive,
diff, chain, and storage.

40 pass, 0 fail, 2s runtime.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-03-11 14:23:16 -07:00
parent 9e03049de1
commit 27b28b048d
6 changed files with 617 additions and 0 deletions

24
test/fixtures/spa.html vendored Normal file
View File

@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test Page - SPA</title>
<style>
body { font-family: sans-serif; }
#app { padding: 20px; }
.loaded { color: green; }
</style>
</head>
<body>
<div id="app">Loading...</div>
<script>
console.log('[SPA] Starting render');
console.warn('[SPA] This is a warning');
console.error('[SPA] This is an error');
setTimeout(() => {
document.getElementById('app').innerHTML = '<h1 class="loaded">SPA Content Loaded</h1><p>Rendered by JavaScript</p>';
console.log('[SPA] Render complete');
}, 500);
</script>
</body>
</html>