fix: browser testing issues and missing UI tools

- Fix WebSocket URL to use ws:// for http development environments
- Make createLayer idempotent to prevent race-condition 500 under React StrictMode
- Add URL-based routing for /register so register page actually shows register form
- Add missing tool buttons to LeftSidebar: polygon, chair, extend, fillet
- Add Playwright browser test suite for exhaustive UI testing
- Update .gitignore for Playwright artifacts

Unit tests: backend 254/254, frontend 380/380
This commit is contained in:
2026-07-27 01:17:18 +02:00
parent 8f4ca1581c
commit c86b5e7031
10 changed files with 551 additions and 2 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ export interface UseYjsBindingResult {
clearSelection: () => void;
}
const DEFAULT_WS_URL = `wss://${window.location.host}`;
const DEFAULT_WS_URL = `${window.location.protocol === 'https:' ? 'wss' : 'ws'}://${window.location.host}`;
export function useYjsBinding(opts: UseYjsBindingOptions): UseYjsBindingResult {
const { docName, wsUrl = DEFAULT_WS_URL, userId, userName, userColor, enabled = true, token } = opts;