mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-03 04:00:31 +00:00
Cloud builds (rh-test) have two initialization blockers for Playwright tests: 1. Firebase auth guard in router waits 16s for auth initialization - Tests timeout at 15s, causing all tests to fail - Fix: Skip entire auth guard when DISTRIBUTION !== 'cloud' - Safe because guard is 100% cloud-specific (Firebase, cloud login, etc.) 2. main.ts calls loadRemoteConfig() which fetches /api/features - Only triggered when isCloud=true, but still blocks if endpoint missing - Fix: Mock /api/features in ComfyPage setup, try real backend first Both issues only affect cloud builds. Playwright builds with DISTRIBUTION='localhost' so these fixes make tests pass while keeping cloud functionality intact.