mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-19 02:42:29 +08:00
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:
24
test/fixtures/spa.html
vendored
Normal file
24
test/fixtures/spa.html
vendored
Normal 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>
|
||||
Reference in New Issue
Block a user