Skip to content

Commit 86cf7ce

Browse files
test(app-shell): pin the invite outcome toast and the copy-invite-link dialog on Setup → Invitations (#28182)
<!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoSfbLeHh7TGZNuKPH73JdBz)_ Fixes #27797 Refs #27521 (row 6) Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:只新增一个测试文件,在真实的 Setup → Invitations 列表页上钉住两件事:没配邮件时邀请提示不说「已发送」,以及「Copy Invite Link」能把接受链接复制到剪贴板。没有改任何产品代码。 - 为什么改:服务端修复(#27843,PR #27902)已在 main 上;按裁决 E,本卡只做现场复测和一个 ObjectView 钉子。现场复测确认修复已经到达控制台,管理员在无邮件部署上不再被告知「已发送」,也能把链接手动交给受邀人。 - 风险与回滚:零运行时风险,只加测试(私有包 `@object-ui/app-shell` 的 `src` 下,不随任何包发布)。回滚即 revert 本 PR。 - 先看:`ui/packages/app-shell/src/views/ObjectView.inviteOutcome-27797.test.tsx`(唯一文件;先看 fixture 里的 `FEATURES` 与 `copy_invitation_link` 的 `visible`)。 - 两分钟验证:`pnpm --dir ui exec vitest run packages/app-shell/src/views/ObjectView.inviteOutcome-27797.test.tsx`,预期 4 passed。 - 需要你做的:无,席位落地。 ## What changes One new pin, `ui/packages/app-shell/src/views/ObjectView.inviteOutcome-27797.test.tsx`, beside `ObjectView.inviteFeedback-11817.test.tsx`. It mounts the real `ObjectView` over `sys_invitation` as a stock boot serves it, with the real action runner, console action runtime, param dialog, result dialog and toaster (sonner not mocked): - `link_only` invite answer: the toast is the declared "Invitation created for ada@example.com. Mail is not configured on this server, so no email went out. Use Copy Invite Link on the invitation to share it." and no "Invitation sent" text appears. - Control, `sent` answer: "Invitation sent to ada@example.com", and no "no email went out" text. - A pending row's menu offers Copy Invite Link. Its click posts to `/api/v1/actions/sys_invitation/copy_invitation_link` naming the row id. The result dialog titled "Invite link" shows the answered `acceptUrl` as text, and its copy button writes exactly that URL to the clipboard. - Control: an accepted row's menu offers Resend Invitation and no Copy Invite Link. No ui code changed. Per ruling E (comment 6512831254), the server carries the fix (`outcomeMessages`, and a `type: 'script'` action answering into a `resultDialog` with `format: 'text'`). The live re-measure below shows that fix reaching the console unchanged, so no renderer change was needed. ## Tests - Pin: 4/4 passed at `43ba24a6` (`pnpm --dir ui exec vitest run packages/app-shell/src/views/ObjectView.inviteOutcome-27797.test.tsx`, under `scripts/pm/os-verify-lock.sh`, VERDICT command-exit 0). - The first run failed 3 of 4 when the fixture's features omitted `cloudManaged`. Every served invite predicate reads `features.cloudManaged != true`, an absent key fails the predicate closed, and a stock boot serves `cloudManaged: false`. The fixture now carries the served value, with a comment saying why. - No ablation: the diff changes no tested behaviour, since it only adds a test. ## Acceptance notes - Live re-measure, stock `examples/app-showcase` (`pnpm dev -- --fresh`, seeded admin, desktop 1440×900, Chromium), `origin/main` `10fc9bf1`, full workspace build plus console build from this tree: - **No mail transport** (default `log`): the invite door answers `outcome: "link_only"`. Toast: "Invitation created for ada.nomail@example.com. Mail is not configured on this server, so no email went out. Use Copy Invite Link on the invitation to share it." Resend toast: "Invitation renewed for … no email went out …". Row menu: Cancel Invitation, Resend Invitation, Copy Invite Link. The detail drawer's record header shows Copy Invite Link. The copy dialog shows `http://localhost:38797/_console/accept-invitation/ID`, the copy button puts that same string on the clipboard, and the URL answers 200 `text/html` (the accept page under the console mount). - **Live transport**: `OS_EMAIL_PROVIDER=smtp` against a local SMTP sink. The door answers `outcome: "sent"`, and the toast reads "Invitation sent to grace.mail@example.com". The accept URL in the delivered mail (quoted-printable decoded) equals the copy dialog's URL byte for byte. - Out of scope, for the seat (class a, reach measured in the console): the result dialog's copy button (`CopyButton` in `ActionResultDialog.tsx`, used by the `text` / `secret` / `qrcode` / `code-list` / `json` formats) is icon-only and has no accessible name. In the live dialog its `aria-label` and text are both empty, so a screen reader announces an unnamed button. This affects every `resultDialog`, not only invitations. Dedupe words: result dialog copy button accessible name, CopyButton aria-label, resultDialog copy icon. - `skip-changeset` is right for this diff: it is tests only, in `@object-ui/app-shell` (`"private": true`, `files` lists `dist`, and the built `dist` has 0 hits for the test against a positive control of 8 for `ActionResultDialog`). The seat applies the label after its own check. ## Verification <details> <summary>Derived gates (dispatch-gates --commands, 24) — all exit 0 at 43ba24a; --ran: 24 run, 0 NOT-MEASURED, 0 UNRUN</summary> ``` node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/check-sdui-manifest.mjs :: exit 0 node scripts/check-sdui-manifest.mjs --self-test :: exit 0 pnpm --dir ui exec vitest run scripts/ :: exit 0 (169 files passed, 2 skipped; 4901 tests passed) pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:dispatcher-error-vocabulary :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:engine-double-contract :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:published-files :: exit 0 pnpm check:query-options-erasure :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:skill-identifier-liveness :: exit 0 pnpm check:test-source-alias :: exit 0 pnpm check:tier-file-adoption :: exit 0 pnpm check:type-check-coverage :: exit 0 pnpm check:type-check-debt :: exit 0 pnpm check:undeclared-dep-imports :: exit 0 pnpm check:watch-hint-literal :: exit 0 pnpm check:where-matcher :: exit 0 ``` </details> <details> <summary>Outside the derivation</summary> ``` cd ui && node scripts/check-new-cross-file-line-citations.mjs :: exit 0 (0 new citations) cd ui/packages/app-shell && tsc -p tsconfig.test.json --noEmit :: exit 0 (0 errors; its include covers src/**/*.test.tsx) cd ui && eslint packages/app-shell/src/views/ObjectView.inviteOutcome-27797.test.tsx :: exit 0 ``` </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibvGisaRusgvzEwJxoQ)_ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 8a33dff commit 86cf7ce

1 file changed

Lines changed: 357 additions & 0 deletions

File tree

Lines changed: 357 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,357 @@
1+
/**
2+
* ObjectUI
3+
* Copyright (c) 2024-present ObjectStack Inc.
4+
*
5+
* This source code is licensed under the MIT license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
9+
/**
10+
* objectstack#27797 — Setup → Invitations on a deployment with no mail
11+
* transport, through the real list page.
12+
*
13+
* The fix is the server's (objectstack#27843, ruling E on objectstack#27797):
14+
* invite-member answers a top-level `outcome` (`sent` | `link_only`), the
15+
* invite actions declare `outcomeMessages` for both, and a `type: 'script'`
16+
* action, `copy_invitation_link`, answers `{ acceptUrl }` into a
17+
* `resultDialog` with `format: 'text'`. The renderer learns nothing about
18+
* invitations; what is pinned here is that the generic chain carries those
19+
* declarations to the administrator: the real `ObjectView`, the real
20+
* `action:bar` / grid row menu → `ActionRunner` chain, the real console
21+
* action runtime, the real `ActionParamDialog`, `ActionResultDialog` and
22+
* `ConsoleToaster` (sonner is NOT mocked), in a real i18next instance in `en`.
23+
*
24+
* - **The toast follows the outcome.** A `link_only` answer toasts the
25+
* declared "created … no email went out" copy and never "sent"; a `sent`
26+
* answer keeps "Invitation sent to …". Same action, same row, only the
27+
* answer's `outcome` differs.
28+
* - **The link reaches the clipboard.** The row menu offers Copy Invite
29+
* Link on a pending invitation; its click posts to the platform action
30+
* door with the row's id, and the result dialog shows the answer's
31+
* `acceptUrl` as text whose copy button writes exactly that URL. Control:
32+
* an accepted invitation's menu has no Copy Invite Link.
33+
*
34+
* The fixture is `sys_invitation` as the server serves it
35+
* (`GET /api/v1/meta/object/sys_invitation` on a stock `app-showcase` boot),
36+
* abridged to the keys this page reads: `requiresFeature` and
37+
* `requiresMembershipReach` arrive already lowered into each action's
38+
* `visible`. The answers are the action door's, as measured on that boot.
39+
*/
40+
41+
import * as React from 'react';
42+
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
43+
import { render, cleanup, screen, fireEvent, waitFor, act, within } from '@testing-library/react';
44+
import { MemoryRouter, Routes, Route } from 'react-router-dom';
45+
import { toast } from 'sonner';
46+
import { createI18n, I18nProvider } from '@object-ui/i18n';
47+
48+
vi.mock('@object-ui/permissions', async (importOriginal) => {
49+
const actual = await importOriginal<typeof import('@object-ui/permissions')>();
50+
// Stable identities — `ListView` names `perms` in its fetch dependencies.
51+
const perms = {
52+
check: () => ({ allowed: true }),
53+
checkField: () => true,
54+
getFieldPermissions: () => [],
55+
getRowFilter: () => undefined,
56+
getObjectApiOperations: () => undefined,
57+
roles: [],
58+
isLoaded: false,
59+
hasCapabilities: () => true,
60+
can: () => true,
61+
cannot: () => false,
62+
};
63+
const fieldPerms = { canRead: () => true, canWrite: () => true, permissions: [] };
64+
return { ...actual, usePermissions: () => perms, useFieldPermissions: () => fieldPerms };
65+
});
66+
67+
vi.mock('@object-ui/auth', async (importOriginal) => ({
68+
...(await importOriginal<Record<string, unknown>>()),
69+
useAuth: () => ({ user: { id: 'u1', name: 'Ada' }, activeOrganization: { id: 'org1', name: 'Acme' } }),
70+
useWorkspaceAdminStatus: () => ({ isAdmin: true, isResolved: true }),
71+
// The handlers' authenticated fetch, routed to the stubbed global.
72+
createAuthenticatedFetch: () => (url: string, init?: RequestInit) => fetch(url, init),
73+
}));
74+
75+
vi.mock('@object-ui/collaboration', async (importOriginal) => ({
76+
...(await importOriginal<Record<string, unknown>>()),
77+
useRealtimeSubscription: () => ({ lastMessage: null }),
78+
useConflictResolution: () => ({ hasConflicts: false, resolveAllConflicts: () => {} }),
79+
}));
80+
81+
vi.mock('./MetadataInspector', () => ({
82+
MetadataPanel: () => null,
83+
useMetadataInspector: () => ({ showDebug: false, toggle: () => {} }),
84+
}));
85+
vi.mock('./RecordDetailView', () => ({ RecordDetailView: () => null }));
86+
87+
vi.mock('./metadata-admin/useMetadata', async (importOriginal) => ({
88+
...(await importOriginal<Record<string, unknown>>()),
89+
useMetadataClient: () => ({ save: vi.fn(async () => ({})), get: vi.fn(async () => null) }),
90+
}));
91+
92+
import { ObjectView } from './ObjectView';
93+
import { ExpressionProvider } from '../providers/ExpressionProvider';
94+
import { ConsoleToaster } from '../chrome/ConsoleToaster';
95+
96+
// ── The served object (abridged to the keys this page reads) ───────────────
97+
98+
/** `requiresMembershipReach: 'invite_member'`, lowered. */
99+
const INVITE_REACH =
100+
"'org_owner' in current_user.positions || 'org_admin' in current_user.positions || "
101+
+ "'delegated_admin' in current_user.positions";
102+
103+
const ROLE_OPTIONS = [
104+
{ label: 'Admin', value: 'admin' },
105+
{ label: 'Member', value: 'member' },
106+
];
107+
108+
const LINK_ONLY_TAIL = 'Mail is not configured on this server, so no email went out. '
109+
+ 'Use Copy Invite Link on the invitation to share it.';
110+
111+
const SYS_INVITATION = {
112+
name: 'sys_invitation',
113+
label: 'Invitation',
114+
pluralLabel: 'Invitations',
115+
managedBy: 'better-auth',
116+
fields: {
117+
id: { type: 'text', label: 'Invitation ID' },
118+
email: { type: 'email', label: 'Email' },
119+
role: { type: 'select', label: 'Role', options: ROLE_OPTIONS, defaultValue: 'member' },
120+
status: {
121+
type: 'select',
122+
label: 'Status',
123+
defaultValue: 'pending',
124+
options: ['pending', 'accepted', 'rejected', 'expired', 'canceled'].map((v) => ({ label: v, value: v })),
125+
},
126+
},
127+
actions: [
128+
{
129+
name: 'invite_user',
130+
label: 'Invite User',
131+
locations: ['list_toolbar'],
132+
type: 'api',
133+
target: '/api/v1/auth/organization/invite-member',
134+
params: [
135+
{ field: 'email', required: true },
136+
{ field: 'role', required: true, options: ROLE_OPTIONS },
137+
],
138+
variant: 'primary',
139+
successMessage: 'Invitation sent to {{ result.email }}',
140+
outcomeMessages: {
141+
sent: 'Invitation sent to ${result.email}',
142+
link_only: `Invitation created for \${result.email}. ${LINK_ONLY_TAIL}`,
143+
},
144+
refreshAfter: true,
145+
visible: {
146+
dialect: 'cel',
147+
source: `((features.cloudManaged != true) && (${INVITE_REACH})) && features.organization != false`,
148+
},
149+
},
150+
{
151+
name: 'resend_invitation',
152+
label: 'Resend Invitation',
153+
locations: ['list_item'],
154+
type: 'api',
155+
target: '/api/v1/auth/organization/invite-member',
156+
params: [
157+
{ field: 'email', required: true, defaultFromRow: true },
158+
{ field: 'role', required: true, defaultFromRow: true },
159+
],
160+
variant: 'secondary',
161+
successMessage: 'Invitation resent',
162+
outcomeMessages: {
163+
sent: 'Invitation resent to ${result.email}',
164+
link_only: `Invitation renewed for \${result.email}. ${LINK_ONLY_TAIL}`,
165+
},
166+
refreshAfter: true,
167+
visible: { dialect: 'cel', source: `(${INVITE_REACH}) && features.organization != false` },
168+
bodyExtra: { resend: true },
169+
},
170+
{
171+
name: 'copy_invitation_link',
172+
label: 'Copy Invite Link',
173+
locations: ['list_item', 'record_header'],
174+
type: 'script',
175+
target: 'copy_invitation_link',
176+
variant: 'secondary',
177+
refreshAfter: false,
178+
resultDialog: {
179+
title: 'Invite link',
180+
description:
181+
'Anyone who opens this link can accept the invitation, so share it only with the person you invited. '
182+
+ 'It stops working once the invitation is accepted, declined, canceled or expires.',
183+
acknowledge: 'Done',
184+
format: 'text',
185+
fields: [{ path: 'acceptUrl', label: 'Invite link' }],
186+
},
187+
visible: {
188+
dialect: 'cel',
189+
source: "((features.cloudManaged != true && has(record.status) && record.status == 'pending') "
190+
+ `&& (${INVITE_REACH})) && features.organization != false`,
191+
},
192+
},
193+
],
194+
listViews: {
195+
pending: { name: 'pending', label: 'Pending', type: 'grid', columns: ['email', 'role', 'status'] },
196+
},
197+
};
198+
199+
/** The seeded admin: an org owner, inside every invite reach. */
200+
const ADMIN = { id: 'u1', name: 'Dev Admin', positions: ['org_owner'] };
201+
202+
/**
203+
* The auth features a stock boot serves (`GET /api/v1/auth/config`), the keys
204+
* these predicates read. `cloudManaged` is served `false`, not left out: an
205+
* absent key fails the predicate closed.
206+
*/
207+
const FEATURES = { organization: true, cloudManaged: false };
208+
209+
const PENDING_ROW = { id: 'inv1', email: 'ada@example.com', role: 'member', status: 'pending' };
210+
const ACCEPTED_ROW = { id: 'inv2', email: 'grace@example.com', role: 'member', status: 'accepted' };
211+
212+
/** The accept page under the console mount, as `copy_invitation_link` answers it. */
213+
const ACCEPT_URL = 'https://acme.example.com/_console/accept-invitation/inv1';
214+
215+
const INVITE_DOOR = '/api/v1/actions/sys_invitation/invite_user';
216+
const COPY_DOOR = '/api/v1/actions/sys_invitation/copy_invitation_link';
217+
218+
type Answer = { status: number; body: unknown };
219+
let answers: Record<string, Answer>;
220+
let fetchSpy: ReturnType<typeof vi.fn>;
221+
let writeText: ReturnType<typeof vi.fn>;
222+
223+
/** invite-member's answer through the action door, with the delivery outcome. */
224+
function inviteAnswer(outcome: 'sent' | 'link_only'): Answer {
225+
return {
226+
status: 200,
227+
body: { success: true, data: { ...PENDING_ROW, organizationId: 'org1', outcome } },
228+
};
229+
}
230+
231+
beforeEach(() => {
232+
answers = {
233+
[INVITE_DOOR]: inviteAnswer('link_only'),
234+
[COPY_DOOR]: { status: 200, body: { success: true, data: { acceptUrl: ACCEPT_URL } } },
235+
};
236+
fetchSpy = vi.fn(async (url: unknown) => {
237+
const door = Object.keys(answers).find((d) => String(url).includes(d));
238+
const answer = door ? answers[door] : { status: 200, body: { data: [] } };
239+
return new Response(JSON.stringify(answer.body), {
240+
status: answer.status,
241+
headers: { 'content-type': 'application/json' },
242+
});
243+
});
244+
vi.stubGlobal('fetch', fetchSpy);
245+
writeText = vi.fn(async () => {});
246+
Object.defineProperty(navigator, 'clipboard', { value: { writeText }, configurable: true });
247+
});
248+
249+
afterEach(() => {
250+
act(() => { toast.dismiss(); });
251+
cleanup();
252+
vi.unstubAllGlobals();
253+
});
254+
255+
function mountInvitations(rows: Array<Record<string, unknown>> = []) {
256+
const i18n = createI18n({ defaultLanguage: 'en', detectBrowserLanguage: false });
257+
const dataSource = {
258+
find: vi.fn(async () => ({ data: rows, total: rows.length })),
259+
findOne: vi.fn(async () => null),
260+
getObjectSchema: vi.fn(async (name: string) => (name === 'sys_invitation' ? SYS_INVITATION : null)),
261+
create: vi.fn(async () => ({})),
262+
update: vi.fn(async () => ({})),
263+
delete: vi.fn(async () => ({})),
264+
} as never;
265+
return render(
266+
<I18nProvider instance={i18n}>
267+
<ConsoleToaster />
268+
<ExpressionProvider user={ADMIN} features={FEATURES}>
269+
<MemoryRouter initialEntries={['/apps/setup/sys_invitation/view/pending']}>
270+
<Routes>
271+
<Route
272+
path="/apps/:appName/:objectName/view/:viewId"
273+
element={<ObjectView dataSource={dataSource} objects={[SYS_INVITATION]} onEdit={() => {}} />}
274+
/>
275+
</Routes>
276+
</MemoryRouter>
277+
</ExpressionProvider>
278+
</I18nProvider>,
279+
);
280+
}
281+
282+
function doorCalls(door: string) {
283+
return fetchSpy.mock.calls.filter(([u]) => String(u).includes(door));
284+
}
285+
286+
/** Invite ada@example.com through the toolbar dialog and wait for the request. */
287+
async function inviteAda(): Promise<void> {
288+
fireEvent.click(await screen.findByRole('button', { name: /Invite User/ }, { timeout: 5000 }));
289+
const dialog = await screen.findByRole('dialog', undefined, { timeout: 5000 });
290+
await waitFor(() => expect(dialog.querySelector('input')).not.toBeNull(), { timeout: 5000 });
291+
fireEvent.change(within(dialog).getByRole('textbox'), { target: { value: 'ada@example.com' } });
292+
await act(async () => { fireEvent.click(within(dialog).getByRole('button', { name: 'Confirm' })); });
293+
await waitFor(() => expect(doorCalls(INVITE_DOOR)).toHaveLength(1), { timeout: 5000 });
294+
}
295+
296+
/** Open the row menu of the row showing `email`; answers the menu's item labels. */
297+
async function openRowMenu(email: string): Promise<string[]> {
298+
const cell = await screen.findByText(email, undefined, { timeout: 5000 });
299+
const row = cell.closest('tr')!;
300+
const trigger = await waitFor(() => {
301+
const t = within(row).getAllByRole('button').find((b) => b.getAttribute('aria-haspopup') === 'menu');
302+
expect(t).toBeDefined();
303+
return t!;
304+
}, { timeout: 5000 });
305+
fireEvent.pointerDown(trigger, { button: 0, pointerType: 'mouse' });
306+
const items = await screen.findAllByRole('menuitem', undefined, { timeout: 5000 });
307+
return items.map((item) => (item.textContent ?? '').trim());
308+
}
309+
310+
describe('objectstack#27797 — the invite toast follows the delivery outcome', () => {
311+
it('a `link_only` answer toasts the created/no-mail copy, never "sent"', async () => {
312+
mountInvitations();
313+
await inviteAda();
314+
315+
expect(
316+
await screen.findByText(`Invitation created for ada@example.com. ${LINK_ONLY_TAIL}`, undefined, { timeout: 5000 }),
317+
).toBeInTheDocument();
318+
expect(screen.queryByText(/Invitation sent/)).toBeNull();
319+
});
320+
321+
it('control: a `sent` answer keeps "Invitation sent to …"', async () => {
322+
answers[INVITE_DOOR] = inviteAnswer('sent');
323+
mountInvitations();
324+
await inviteAda();
325+
326+
expect(await screen.findByText('Invitation sent to ada@example.com', undefined, { timeout: 5000 })).toBeInTheDocument();
327+
expect(screen.queryByText(/no email went out/)).toBeNull();
328+
});
329+
});
330+
331+
describe('objectstack#27797 — Copy Invite Link hands the accept URL to the clipboard', () => {
332+
it('the pending row\'s menu runs the server action and the result dialog copies its `acceptUrl`', async () => {
333+
mountInvitations([PENDING_ROW]);
334+
expect(await openRowMenu(PENDING_ROW.email)).toContain('Copy Invite Link');
335+
336+
await act(async () => { fireEvent.click(screen.getByRole('menuitem', { name: /Copy Invite Link/ })); });
337+
await waitFor(() => expect(doorCalls(COPY_DOOR)).toHaveLength(1), { timeout: 5000 });
338+
const [, init] = doorCalls(COPY_DOOR)[0];
339+
expect(JSON.stringify(JSON.parse(String((init as RequestInit).body)))).toContain('"inv1"');
340+
341+
const dialog = await screen.findByRole('dialog', { name: 'Invite link' }, { timeout: 5000 });
342+
const value = within(dialog).getByText(ACCEPT_URL);
343+
expect(value.tagName).toBe('CODE');
344+
await act(async () => { fireEvent.click(within(value.parentElement!).getByRole('button')); });
345+
346+
expect(writeText).toHaveBeenCalledTimes(1);
347+
expect(writeText).toHaveBeenCalledWith(ACCEPT_URL);
348+
});
349+
350+
it('control: an accepted invitation\'s menu offers no Copy Invite Link', async () => {
351+
mountInvitations([ACCEPTED_ROW]);
352+
const items = await openRowMenu(ACCEPTED_ROW.email);
353+
354+
expect(items).toContain('Resend Invitation');
355+
expect(items).not.toContain('Copy Invite Link');
356+
});
357+
});

0 commit comments

Comments
 (0)