Skip to content

Commit 9edf548

Browse files
test(vscode): stop reloading the multi-root workspace
The lineage multiworkspace test opened ?workspace= and then reloaded. The reload keeps the workspace title and clears the folders, so the LSP reports "No workspace folders found" and the test waits out its 180s timeout. Wait for the folder that the first load already shows. Signed-off-by: Nick Muoh <nickspirit3+github@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 2d7e9f5 commit 9edf548

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎vscode/extension/tests/lineage.spec.ts‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ test('Lineage panel renders correctly - absolute path project outside of workspa
129129
await testLineageWithProjectPath(page)
130130
})
131131

132-
// These work on local machine when debuggin but not on CI, so skipping for now
133132
test('Lineage panel renders correctly - multiworkspace setup', async ({
134133
page,
135134
sharedCodeServer,
@@ -174,7 +173,10 @@ test('Lineage panel renders correctly - multiworkspace setup', async ({
174173
)
175174

176175
await openServerPage(page, workspaceFilePath, sharedCodeServer)
177-
await page.reload()
176+
// The first load already has both folders. Reloading ?workspace= keeps the
177+
// workspace title and clears the folders ("No Folder Opened"), so the LSP
178+
// never starts.
179+
await page.getByText('sushi1', { exact: true }).waitFor()
178180
await testLineageWithProjectPath(page)
179181
})
180182

@@ -228,6 +230,6 @@ test('Lineage panel renders correctly - multiworkspace setup reversed', async ({
228230
)
229231

230232
await openServerPage(page, workspaceFilePath, sharedCodeServer)
231-
await page.reload()
233+
await page.getByText('sushi2', { exact: true }).waitFor()
232234
await testLineageWithProjectPath(page)
233235
})

0 commit comments

Comments
 (0)