Fix more tests 2 (#18293)

## Summary
- Migrate more hand-written test mocks to auto-generated data from a
real Twenty instance
- Add generators for views, billing plans, API keys; extend record
generator for workspace members, favorites, connected accounts, calendar
events
- Remove 9 hand-written mock files replaced by generated equivalents
- Update 16 test/story files to use generated data
- Fix WorkflowEditActionEmailBase story assertion to match configured
recipient email

## Test plan
- [x] Lint, typecheck, unit tests pass
- [ ] Storybook tests pass in CI
This commit is contained in:
Charles Bochet
2026-02-27 23:11:56 +01:00
committed by GitHub
parent cfad24da48
commit 9342b16aad
37 changed files with 30101 additions and 3139 deletions
@@ -0,0 +1,25 @@
/* eslint-disable */
// @ts-nocheck
// This file was automatically generated — do not edit manually.
// prettier-ignore
export const mockedApiKeys: Record<string, unknown>[] =
[
{
"__typename": "ApiKey",
"id": "20202020-f401-4d8a-a731-64d007c27bad",
"name": "My api key",
"expiresAt": "2025-12-31T23:59:59.000Z",
"createdAt": "2026-02-27T01:17:26.394Z",
"updatedAt": "2026-02-27T01:17:26.394Z",
"revokedAt": null,
"role": {
"__typename": "Role",
"id": "28f0a741-33c8-4af0-8542-f9ca2ad43285",
"label": "Admin",
"icon": "IconUserCog"
}
}
];