Skip to content

Commit

Permalink
Fix test not working after revert
Browse files Browse the repository at this point in the history
  • Loading branch information
j-piasecki committed Jan 11, 2024
1 parent 75de5f2 commit 40b4efe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/perf-test/OptionsSelector.perf-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ test('[OptionsSelector] should scroll and press few items', () => {

const eventData = generateEventData(100, variables.optionRowHeight);
const eventData2 = generateEventData(200, variables.optionRowHeight);
const scenario = (screen) => {
const scenario = async (screen) => {
fireEvent.press(screen.getByText('Item 10'));
fireEvent.scroll(screen.getByTestId('options-list'), eventData);
fireEvent.press(screen.getByText('Item 100'));
fireEvent.press(await screen.findByText('Item 100'));
fireEvent.scroll(screen.getByTestId('options-list'), eventData2);
fireEvent.press(screen.getByText('Item 200'));
};
Expand Down

0 comments on commit 40b4efe

Please sign in to comment.