Add base form action without logic (#10811)
<img width="1298" alt="Capture d’écran 2025-03-12 à 15 32 27" src="https://github.com/user-attachments/assets/8a3140e5-e165-445e-a718-748aa76b525c" />
This commit is contained in:
@ -26,27 +26,12 @@ import { RecordFiltersComponentInstanceContext } from '@/object-record/record-fi
|
||||
import { RecordSortsComponentInstanceContext } from '@/object-record/record-sort/states/context/RecordSortsComponentInstanceContext';
|
||||
import { HttpResponse, graphql } from 'msw';
|
||||
import { IconDotsVertical } from 'twenty-ui';
|
||||
import { FeatureFlagKey } from '~/generated/graphql';
|
||||
import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator';
|
||||
import { JestContextStoreSetter } from '~/testing/jest/JestContextStoreSetter';
|
||||
import { CommandMenu } from '../CommandMenu';
|
||||
|
||||
const openTimeout = 50;
|
||||
|
||||
// Mock workspace with feature flag enabled
|
||||
const mockWorkspaceWithFeatureFlag = {
|
||||
...mockCurrentWorkspace,
|
||||
featureFlags: [
|
||||
...(mockCurrentWorkspace.featureFlags || []),
|
||||
{
|
||||
id: 'mock-id',
|
||||
key: FeatureFlagKey.IsCommandMenuV2Enabled,
|
||||
value: true,
|
||||
workspaceId: mockCurrentWorkspace.id,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const ContextStoreDecorator: Decorator = (Story) => {
|
||||
return (
|
||||
<RecordFilterGroupsComponentInstanceContext.Provider
|
||||
@ -92,7 +77,7 @@ const meta: Meta<typeof CommandMenu> = {
|
||||
commandMenuNavigationStackState,
|
||||
);
|
||||
|
||||
setCurrentWorkspace(mockWorkspaceWithFeatureFlag);
|
||||
setCurrentWorkspace(mockCurrentWorkspace);
|
||||
setCurrentWorkspaceMember(mockedWorkspaceMemberData);
|
||||
setIsCommandMenuOpened(true);
|
||||
setCommandMenuNavigationStack([
|
||||
|
||||
Reference in New Issue
Block a user