Files
JoshHeaps.Net/JoshHeaps.Net.UiTests
Josh-HeapsandClaude Opus 5 5501c84e9b Test the ranging pipeline against a simulated room
The DSP tests drive the same files the page loads, so there is no second
implementation to drift. The room tests put two real browsers through a
real room with a synthetic microphone, which covers everything except the
acoustics: slot rotation, leave and rejoin, and the stalled-device case
where a chirp must be withheld rather than sent late.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-07-30 14:42:16 -06:00
..
2025-10-17 12:29:49 -06:00
2025-09-24 14:15:03 -06:00
2025-09-24 14:39:52 -06:00
2025-09-24 14:20:13 -06:00
2025-09-24 14:39:52 -06:00
2025-10-03 10:42:57 -06:00
2025-09-24 14:15:03 -06:00

JoshHeaps.Net UI Tests

This project contains end-to-end tests for the JoshHeaps.Net website using Playwright.

Setup

  1. Install Playwright browsers:

    # From the test project directory
    dotnet build
    # Then install browsers (requires PowerShell or appropriate command for your OS)
    bin/Debug/net8.0/playwright.cmd install  # Windows
    
  2. Make sure the main application is running on https://localhost:7065

Running Tests

# Run all tests
dotnet test

# Run specific test file
dotnet test --filter "FullyQualifiedName~ChessGameTests"

# Run with verbose output
dotnet test --logger "console;verbosity=detailed"

Test Categories

ChessGameTests

  • Basic chess page functionality
  • Game start/stop operations
  • Piece interaction and move validation
  • UI element verification

MultiplayerTests

  • Two-player game scenarios
  • SignalR connection testing
  • Real-time move synchronization

ApiTests

  • Chess API endpoint testing
  • Game creation and state management
  • Move validation at API level
  • Error handling

Configuration

The tests are configured to:

  • Use headless browsers by default
  • Take screenshots on failure
  • Record videos on failure
  • Automatically start the web server if needed (port 7065)

Notes

  • Tests expect the main application to be available at https://localhost:7065
  • Some tests require browsers to be installed via Playwright CLI
  • Browser installations may require PowerShell on Windows systems