8000 Browser automation integration for post-implementation testing · Issue #15 · dominicnunez/springfield · GitHub
[go: up one dir, main page]

Skip to content

Browser automation integration for post-implementation testing #15

Open

Description

@dominicnunez

Summary

sfk run --browser
sfk run "test the login flow" --browser

Give the AI access to browser automation for testing web UIs after implementation.

Why

AI can write code but cant verify it visually. Browser automation closes the loop — implement a feature, then actually test it in a browser.

Implementation

Inject browser instructions into the prompt when --browser flag is set. The AI uses the browser tool via shell commands. No sfk code changes needed beyond prompt injection.

Supported tools (detect whichever is installed):

  • agent-browser — snapshot-based, element refs
  • playwright — script-based
  • Or just curl/web_fetch for API testing
## Browser Testing (enabled)
After implementing, verify your changes:
- agent-browser open http://localhost:3000
- agent-browser snapshot  
- agent-browser click @e1
- agent-browser screenshot verify.png

This is literally just appending text to the prompt. The AI and Claude Code handle the rest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0