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 c90d1b0fa6..55d93cfdc7 100644 --- a/desktop/src/App.test.tsx +++ b/desktop/src/App.test.tsx @@ -887,8 +887,11 @@ test("the first screen offers OpenBot (Self-Contained), then OpenBot for Busines [...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 +1957,15 @@ 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.", + ); + 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. 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}