mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
## Summary - simplify Add community into clear create and join paths - align community actions and icon editing across the rail, profile menu, and settings - consolidate invites around the member list and a reusable link dialog ## Testing - `pnpm check` - `pnpm test` (3,483 passed) - `pnpm run build:e2e` - focused Playwright coverage (34 passed) ## Snapshots | Add a community | Join an existing community | | --- | --- | |  |  | | Create a new community | Hosted community icon | | --- | --- | |  |  | | Invites | Invite link | | --- | --- | |  |  | --------- Signed-off-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Carl <c7ebe626f000404285d3686e1dc74cc07cc60a9754a150041ba132e14bd3e2ec@buzz.block.builderlab.xyz>
31 lines
781 B
TypeScript
31 lines
781 B
TypeScript
import { expect, type Page } from "@playwright/test";
|
|
|
|
type SettingsSection =
|
|
| "profile"
|
|
| "notifications"
|
|
| "agents"
|
|
| "channel-templates"
|
|
| "compute"
|
|
| "appearance"
|
|
| "shortcuts"
|
|
| "hosted-communities"
|
|
| "tokens"
|
|
| "community-members"
|
|
| "mobile"
|
|
| "updates";
|
|
|
|
export async function openProfileMenu(page: Page) {
|
|
await page.getByTestId("open-settings").click();
|
|
await expect(page.getByTestId("profile-popover")).toBeVisible();
|
|
}
|
|
|
|
export async function openSettings(page: Page, section?: SettingsSection) {
|
|
await openProfileMenu(page);
|
|
await page.getByTestId("profile-popover-settings").click();
|
|
await expect(page.getByTestId("settings-view")).toBeVisible();
|
|
|
|
if (section) {
|
|
await page.getByTestId(`settings-nav-${section}`).click();
|
|
}
|
|
}
|