From 16ec8a674b21077c5471b120862276396e57b3f8 Mon Sep 17 00:00:00 2001 From: Felix Yang Date: Sat, 28 Nov 2026 00:53:32 +0000 Subject: [PATCH 1/2] Expect the Self-Contained install screen to say a browser sign-in comes next The screen only says how long setup takes. Account still opens the browser as soon as it appears, so the warning has to be on this screen, with Install. Co-authored-by: Felix Yang --- desktop/src/App.test.tsx | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/desktop/src/App.test.tsx b/desktop/src/App.test.tsx index c90d1b0fa6..f3383ab360 100644 --- a/desktop/src/App.test.tsx +++ b/desktop/src/App.test.tsx @@ -883,12 +883,17 @@ test("the first screen offers OpenBot (Self-Contained), then OpenBot for Busines expect( view.getByRole("heading", { name: "What this computer needs" }), ).toBeTruthy(); + // Beside Install, before this screen goes on to Account. Account opens the browser + // the moment it appears, so the sign-in has to be said here. expect( [...view.container.querySelectorAll(".lede")].map((p) => p.textContent), ).toEqual([ "Every part of OpenBot runs on this computer: the app, its server and database, your Bots' memory, and a computer for each Bot to work on.", - "Setup takes 1 to 10 minutes, depending on your internet speed.", + "Setup takes 1 to 10 minutes, depending on your internet speed. Next, your browser opens so you can sign in and get a free license key.", ]); + expect( + view.queryByRole("heading", { name: "Get your free license key" }), + ).toBeNull(); expect( [...view.container.querySelectorAll(".needs-list li")].map( (item) => item.textContent, @@ -1954,11 +1959,16 @@ describe("with OpenBot Cloud on in this build (VITE_OPENBOT_CLOUD_ENABLED=true)" "4 CPU cores or more", "40 GB of free disk space", ]); + expect(page.textContent).toContain( + "Setup takes 1 to 10 minutes, depending on your internet speed.", + ); + // Beside Install, before this screen goes on to Account, which opens the browser. + expect(page.textContent).toContain( + "Next, your browser opens so you can sign in and get a free license key.", + ); expect( - within(page).getByText( - "Setup takes 1 to 10 minutes, depending on your internet speed.", - ), - ).toBeTruthy(); + view.queryByRole("heading", { name: "Get your free license key" }), + ).toBeNull(); expect(buttons(view)).toEqual(["Connect to it", "Install"]); expect(localCliCalls()).toEqual([]); // Cloud again closes it. From 63b65a91a84ab8d402e924ce22b9a21df2dee56a Mon Sep 17 00:00:00 2001 From: Felix Yang Date: Sat, 28 Nov 2026 00:58:45 +0000 Subject: [PATCH 2/2] Say the Self-Contained install will open a browser sign-in The first screen now says the browser opens next so you can sign in and get a free license key. Account still opens the browser as soon as it appears. Co-authored-by: Felix Yang --- CHANGELOG.md | 4 ++++ desktop/src/App.test.tsx | 3 --- desktop/src/Welcome.tsx | 6 +++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a4e0f158b4..a0546e5f3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ Newest first. `Unreleased` is what is on `main` and not yet tagged. ## Unreleased +- **OpenBot Desktop's Self-Contained install says the browser opens next.** Beside Install, the + first screen now says your browser opens so you can sign in and get a free license key. The + Account step still opens the browser as soon as it appears. + ## 1.2.11 **Before upgrading.** diff --git a/desktop/src/App.test.tsx b/desktop/src/App.test.tsx index f3383ab360..55d93cfdc7 100644 --- a/desktop/src/App.test.tsx +++ b/desktop/src/App.test.tsx @@ -883,8 +883,6 @@ test("the first screen offers OpenBot (Self-Contained), then OpenBot for Busines expect( view.getByRole("heading", { name: "What this computer needs" }), ).toBeTruthy(); - // Beside Install, before this screen goes on to Account. Account opens the browser - // the moment it appears, so the sign-in has to be said here. expect( [...view.container.querySelectorAll(".lede")].map((p) => p.textContent), ).toEqual([ @@ -1962,7 +1960,6 @@ describe("with OpenBot Cloud on in this build (VITE_OPENBOT_CLOUD_ENABLED=true)" expect(page.textContent).toContain( "Setup takes 1 to 10 minutes, depending on your internet speed.", ); - // Beside Install, before this screen goes on to Account, which opens the browser. expect(page.textContent).toContain( "Next, your browser opens so you can sign in and get a free license key.", ); diff --git a/desktop/src/Welcome.tsx b/desktop/src/Welcome.tsx index 8074e8ab58..b4338b3a16 100644 --- a/desktop/src/Welcome.tsx +++ b/desktop/src/Welcome.tsx @@ -24,6 +24,9 @@ export { CloudMarks }; export const SELF_CONTAINED_SUMMARY = "Everything runs on this computer, for trying it or personal use."; +export const SELF_CONTAINED_BROWSER_NEXT = + "Next, your browser opens so you can sign in and get a free license key."; + /** The way to OpenBot (Self-Contained) at the foot of the first screen, with OpenBot Cloud on. */ export const SELF_CONTAINED_ASIDE = "Want everything to run on this computer?"; @@ -490,7 +493,8 @@ function Install({ return ( <>

- Setup takes 1 to 10 minutes, depending on your internet speed. + Setup takes 1 to 10 minutes, depending on your internet speed.{" "} + {SELF_CONTAINED_BROWSER_NEXT}