Skip to content

πŸ™Œ OpenHands: AI-Driven Development

test(snapshots): fix docker-workspace-browser for chat-first home (#515)

Hiep Leb171515282d0
diff --git a/tests/e2e/snapshots/docker-workspace-browser.snapshot.spec.ts b/tests/e2e/snapshots/docker-workspace-browser.snapshot.spec.ts
index 5fcf296f23..eeda171c9e 100644
--- a/tests/e2e/snapshots/docker-workspace-browser.snapshot.spec.ts
+++ b/tests/e2e/snapshots/docker-workspace-browser.snapshot.spec.ts
@@ -22,6 +22,13 @@ test("captures Docker /projects workspace browser state", async ({ page }) => {
.catch(() => undefined);
await expect(consentDialog).toHaveCount(0, { timeout: 5000 });
+ // The home screen is now a chat-first launcher (#514) β€” the workspace
+ // dropdown lives inside OpenWorkspaceDialog, opened via "Open workspace".
+ const openWorkspaceButton = page.getByTestId("open-workspace-button");
+ await expect(openWorkspaceButton).toBeEnabled({ timeout: 15_000 });
+ await openWorkspaceButton.click();
+ await expect(page.getByTestId("open-workspace-dialog-body")).toBeVisible();
+
const workspaceDropdown = page.getByTestId("workspace-dropdown");
await expect(workspaceDropdown).toBeEnabled({ timeout: 15_000 });
await workspaceDropdown.click();