Skip to content

Commit

Permalink
fix reassure tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TMisiukiewicz committed Nov 16, 2023
1 parent 6956ca4 commit dd9e841
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/components/LHNOptionsList/LHNOptionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ import compose from '@libs/compose';
import * as OptionsListUtils from '@libs/OptionsListUtils';
import reportActionPropTypes from '@pages/home/report/reportActionPropTypes';
import reportPropTypes from '@pages/reportPropTypes';
import useThemeStyles from '@styles/useThemeStyles';
import stylePropTypes from '@styles/stylePropTypes';
import styles from '@styles/styles';
import useThemeStyles from '@styles/useThemeStyles';
import variables from '@styles/variables';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
Expand Down Expand Up @@ -99,7 +98,7 @@ function LHNOptionsList({
draftComments,
currentReportID,
}) {
const themeStyles = useThemeStyles();
const styles = useThemeStyles();
/**
* Function which renders a row in the list
*
Expand Down Expand Up @@ -142,7 +141,7 @@ function LHNOptionsList({
);

return (
<View style={style || themeStyles.flex1}>
<View style={style || styles.flex1}>
<FlashList
indicatorStyle="white"
keyboardShouldPersistTaps="always"
Expand Down
6 changes: 3 additions & 3 deletions tests/perf-test/SidebarLinks.perf-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ test('should scroll and click some of the items', () => {
expect(lhnOptionsList).toBeDefined();

fireEvent.scroll(lhnOptionsList, eventData);

const button1 = await screen.findByTestId('1');
const button2 = await screen.findByTestId('2');
// find elements that are currently visible in the viewport
const button1 = await screen.findByTestId('7');
const button2 = await screen.findByTestId('8');
fireEvent.press(button1);
fireEvent.press(button2);
};
Expand Down

0 comments on commit dd9e841

Please sign in to comment.