Commit e340256
committed
🤖 Fix E2E tests: use legacy ID format for metadata.json lookup
The migration logic in getAllWorkspaceMetadata() was trying to load
metadata.json using workspace basename first (e.g., 'demo-review'),
then falling back to legacy ID format (e.g., 'demo-repo-demo-review').
However:
- New workspaces have metadata in config (id + name fields), not metadata.json
- E2E tests and legacy workspaces use the legacy ID format (project-workspace)
The first check (workspace basename) would never succeed for valid cases:
- It's unnecessary for new workspaces (they skip metadata.json lookup)
- It fails for E2E tests/legacy workspaces (they use legacy ID format)
This caused all E2E tests to timeout waiting for workspace list items to appear,
because workspaces weren't being discovered during config migration.
Fix: Remove the redundant first check and go straight to legacy ID format.
This makes E2E tests work while maintaining backward compatibility with
existing workspaces.
🤖 Fix formatting in config.ts1 parent 387ed0e commit e340256
1 file changed
+3
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
280 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | 308 | | |
340 | 309 | | |
341 | 310 | | |
| |||
0 commit comments