experiments in a post-browser web
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

test(fixture): drop hasCmd check + rename waitForHybridExtensions to waitForFeaturesReady

+6 -5
+6 -5
tests/fixtures/desktop-app.ts
··· 219 219 220 220 // Wait for features to be ready via the unified registry. 221 221 // Gates on v2 tile readiness via api.features.list — no host window dependency. 222 - const waitForHybridExtensions = async (timeout: number): Promise<void> => { 222 + const waitForFeaturesReady = async (timeout: number): Promise<void> => { 223 223 const start = Date.now(); 224 224 while (Date.now() - start < timeout) { 225 225 try { ··· 230 230 const result = await api.features.list('builtin'); 231 231 const entries = result?.entries; 232 232 if (!Array.isArray(entries)) return false; 233 - // cmd must be registered + at least 3 total builtins discovered. 234 - const hasCmd = entries.some((e: any) => e.id === 'cmd'); 235 - return hasCmd && entries.length >= 3; 233 + // Feature system is up once the registry has discovered a few 234 + // builtins. (cmd is a core renderer in app/cmd/, not a feature 235 + // tile, so it never appears in this list.) 236 + return entries.length >= 3; 236 237 }); 237 238 if (ready) { 238 239 return; ··· 249 250 const urls = windows.map(w => w.url()); 250 251 throw new Error(`Features failed to load within ${timeout}ms. Windows: ${JSON.stringify(urls)}`); 251 252 }; 252 - await waitForHybridExtensions(15000); 253 + await waitForFeaturesReady(15000); 253 254 254 255 const state: ElectronState = { app: electronApp, tempDir, profile }; 255 256