Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
import { expect, test } from '@playwright/test';
for (const entity of ['project', 'channel']) {
test(`${entity} notification state memberships survive optimistic rollback and authoritative changes`, async ({
page,
}) => {
await page.goto(`/notification-projection.html?entity=${entity}`);
await expect(page.locator('#result')).toHaveAttribute(
'data-status',
'passed',
{ timeout: 60_000 }
);
await expect(page.locator('#result')).toContainText(
'Secondary edges preserve local filtering: 1'
);
if (entity === 'channel') {
await expect(page.locator('#result')).toContainText(
'Open remotely read conversation: its dot clears; other dot stays'
);
await expect(page.locator('#result')).toContainText(
'Equivalent participant filters: local'
);
}
for (const kind of ['DOCUMENT', 'PROJECT', 'CHAT', 'CHANNEL']) {
for (const operation of ['inbox update', 'optimism', 'deletion']) {
await expect(page.locator('#result')).toContainText(
`Unhydrated ${kind} ${operation}: 1`
);
}
}
await expect(page.locator('#result')).toContainText(
'Rollback restores only first notification: 1'
);
await expect(page.locator('#result')).toContainText('DONE: network-only');
await expect(page.locator('#result')).toContainText(
'Write identity switch discards old associations: 1'
);
await expect(page.locator('#result')).toContainText(
'Hydration identity switch discards old associations: 1'
);
await expect(page.locator('#result')).toContainText(
'Identity-only notification cannot inherit a parent: 0'
);
});
}