Skip to content
Merged
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: 2 additions & 2 deletions desktop/src/features/channels/ui/useChannelIntro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ export function useChannelIntro({
if (!activeChannel.archivedAt && activeChannel.isMember) {
if (onAddAgent) {
actions.push({
description: "Add an agent here.",
description: "Bring them in.",
icon: <Bot aria-hidden className="h-6 w-6" />,
label: "Create agent",
label: "Add agents",
onClick: onAddAgent,
testId: "channel-intro-action-create-agent",
});
Expand Down
11 changes: 9 additions & 2 deletions desktop/tests/e2e/channels.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1746,8 +1746,15 @@ test("empty channel shows intro actions", async ({ page }) => {
await expect(
page.getByTestId("channel-intro-action-create-channel"),
).toHaveCount(0);
const addAgentsAction = page.getByTestId("channel-intro-action-create-agent");
await expect(addAgentsAction).toBeVisible();
await expect(
page.getByTestId("channel-intro-action-create-agent"),
addAgentsAction.getByText("Add agents", { exact: true }),
).toBeVisible();
await expect(
addAgentsAction.getByText("Bring them in.", {
exact: true,
}),
).toBeVisible();
await expect(
page.getByTestId("channel-intro-action-add-people"),
Expand All @@ -1767,7 +1774,7 @@ test("empty channel shows intro actions", async ({ page }) => {
await page.keyboard.press("Escape");
await expect(page.getByTestId("members-sidebar")).not.toBeVisible();

await page.getByTestId("channel-intro-action-create-agent").click();
await addAgentsAction.click();
await expect(page.getByRole("heading", { name: "Add agents" })).toBeVisible();

await page.keyboard.press("Escape");
Expand Down
2 changes: 1 addition & 1 deletion desktop/tests/e2e/tooltip-semantics.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ for (const theme of THEMES) {
await expect(row).toBeVisible();
await expectMutedSupportingText(
row.getByRole("button", { name: "Open channel general" }),
/Public channel · Active \d+[mhdw] ago/,
/Public channel · Active (just now|\d+[mhdw] ago)/,
);
await page.mouse.move(0, 0);
await expectMutedSupportingText(
Expand Down
Loading