Browser Verification for Web Changes

lesson tools active tools/browser-verification.md View on GitHub

Browser Verification for Web Changes

Rule

Always verify web changes by checking console outputs and visual rendering before declaring them fixed.

Context

When making changes to web applications (HTML, CSS, JavaScript) that will be deployed to production.

Detection

Observable signals that you need browser verification:

Common failure patterns (from logs):

Pattern

Minimal 3-step verification:

from gptme.tools.browser import read_url, read_logs, screenshot_url

# Step 1: Load and check content
url = "https://example.com/page"
content = read_url(url)
assert "Expected content" in content

# Step 2: Check console for errors
logs = read_logs()
assert "Error" not in logs  # No JavaScript errors

# Step 3: Visual verification
screenshot_url(url, "verify.png")
# Review screenshot for correct appearance

Outcome

Following this pattern results in:

Example (from real incident):

Related

Match Keywords

verify web changes in browser check browser console errors deployment verification commit web changes without testing push without browser check claiming fixed without testing check in browser forgot to test in browser web change deployed without verification