diff --git a/surfaces/gui/e2e/cloud.spec.ts b/surfaces/gui/e2e/cloud.spec.ts index 5d73a61c..10d1faee 100644 --- a/surfaces/gui/e2e/cloud.spec.ts +++ b/surfaces/gui/e2e/cloud.spec.ts @@ -41,11 +41,12 @@ test("signed out: the account row is the sign-in home; managed connector still c await expect(modal.getByRole("button", { name: /one click/i })).toHaveCount(0); }); -test("signed in: account row shows the name; one-click appears; sign out from the menu", async ({ +test("signed in: account row shows the name and status; one-click appears; sign out from the menu", async ({ page, }) => { await openConnectors(page); await signIn(page); + await expect(page.getByTestId("cloud-status")).toHaveText("Signed in"); await page.getByTestId("connector-gmail").getByRole("button", { name: "Connect", exact: true }).click(); const modal = page.getByTestId("add-connection-modal"); diff --git a/surfaces/gui/src/components/Sidebar.tsx b/surfaces/gui/src/components/Sidebar.tsx index 9f0215dd..01ae500f 100644 --- a/surfaces/gui/src/components/Sidebar.tsx +++ b/surfaces/gui/src/components/Sidebar.tsx @@ -173,7 +173,7 @@ const compactAge = (iso?: string | null): string => { export function Sidebar(props: Props) { const [searchModalOpen, setSearchModalOpen] = useState(false); const [appMenuOpen, setAppMenuOpen] = useState(false); - // The account row (§26): cloud sign-in status drives the avatar/name/dot; refreshed on + // The account row (§26): cloud sign-in status drives the avatar/name/status label; refreshed on // focus and whenever the menu opens (sign-in completes out-of-band in the browser). const [cloud, setCloud] = useState(null); // Inbox chip sticky unlock (§26): absent until the product first parks an item (or a @@ -1212,7 +1212,11 @@ export function Sidebar(props: Props) { }} aria-haspopup="menu" aria-expanded={appMenuOpen} - aria-label={cloud?.signed_in ? `Account: ${accountEmail}` : "Account: not signed in"} + aria-label={ + cloud?.signed_in + ? `Account: ${accountEmail}, signed in to OpenWorker Cloud` + : "Account: not signed in" + } > {cloud?.signed_in && ( + > + Signed in + )} {inboxUnlocked && ( diff --git a/temp-screenshots/issue-469/account-row-signed-in.png b/temp-screenshots/issue-469/account-row-signed-in.png new file mode 100644 index 00000000..f31f5375 Binary files /dev/null and b/temp-screenshots/issue-469/account-row-signed-in.png differ