Skip to content

Testing: E2E Tests with LocalStack + VHS #37

@yimsk

Description

@yimsk

E2E Tests with LocalStack + VHS 🧪

Automated UI testing using LocalStack for AWS simulation and VHS for TUI recording.

Stack

  • LocalStack: Local AWS environment
  • VHS: Terminal recording/testing tool
  • CI Integration: Run on GitHub Actions

Test Scenarios

1. Launch claws → verify dashboard renders
2. Navigate to EC2 → verify instances list
3. Filter with '/' → verify filtering works
4. View details with Enter → verify detail view
5. Action menu with 'a' → verify actions display

VHS Tape Example

Set Shell "bash"
Type "claws"
Enter
Sleep 2s
Type "s"
Sleep 1s
Type "/web"
Sleep 500ms
Screenshot "filter-test.png"

Implementation

  • LocalStack docker-compose setup
  • Seed data scripts (create test resources)
  • VHS tape files for each test scenario
  • GitHub Actions workflow
  • Screenshot comparison (optional)

Benefits

  • Catch UI regressions
  • Validate navigation flows
  • Demo generation automation

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions