diff --git a/.perf-test.js/MenuEdit.perf-test.tsx b/.perf-test.js/MenuEdit.perf-test.tsx index 8ee8674..f351d37 100644 --- a/.perf-test.js/MenuEdit.perf-test.tsx +++ b/.perf-test.js/MenuEdit.perf-test.tsx @@ -5,9 +5,18 @@ import MenuEdit from '../app/tabs/menuEdit'; import AllProviders from '../.jest/helper/AllProviders'; import {MOCK_MENU_ITEMS} from '../__tests__/MenuEdit.test'; +import {fireEvent, screen} from '@testing-library/react-native'; test('MenuEdit Component Performance', async () => { + const scenario = async (componentScreen: typeof screen) => { + const checkedItem = MOCK_MENU_ITEMS.filter(item => item.isActive)[0]; + const checkedItemElement = componentScreen.getByTestId(checkedItem.id); + + await fireEvent.press(checkedItemElement); + }; + await measurePerformance(, { + scenario, wrapper: AllProviders, }); });