Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.**
Expand Down
17 changes: 12 additions & 5 deletions desktop/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 5 additions & 1 deletion desktop/src/Welcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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?";

Expand Down Expand Up @@ -490,7 +493,8 @@ function Install({
return (
<>
<p className="lede">
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}
</p>
<div className="row">
<button
Expand Down