Skip to content

Commit

Permalink
chore: logger to get additional information
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Mar 29, 2024
1 parent 5a8cb7f commit 1292ee4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ type BaseInvertedFlatListProps = FlatListProps<ReportAction> & {
const AUTOSCROLL_TO_TOP_THRESHOLD = 128;

let localViewableItems: ViewToken[];
const getViewableItems = () => localViewableItems;
const getViewableItems = () => console.log(787878798792) || localViewableItems;

function BaseInvertedFlatListE2e(props: BaseInvertedFlatListProps, ref: React.ForwardedRef<FlatList<ReportAction>>) {
const {shouldEnableAutoScrollToTopThreshold, ...rest} = props;
console.log("BaseInvertedFlatListE2e");

const handleViewableItemsChanged = useMemo(
() =>
({viewableItems}: {viewableItems: ViewToken[]}) => {
console.log("handleViewableItemsChanged", {viewableItems});
localViewableItems = viewableItems;
},
[],
Expand Down
4 changes: 3 additions & 1 deletion src/libs/E2E/tests/linkingTest.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const test = (config: NativeConfig) => {
const linkedReportID = getConfigValueOrThrow('linkedReportID', config);
const linkedReportActionID = getConfigValueOrThrow('linkedReportActionID', config);

console.log({linkedReportActionID});

E2ELogin().then((neededLogin) => {
if (neededLogin) {
return waitForAppLoaded().then(() => E2EClient.submitTestDone());
Expand Down Expand Up @@ -59,7 +61,7 @@ const test = (config: NativeConfig) => {
console.debug('[E2E] Error while submitting test results:', err);
});
} else {
console.debug('[E2E] Message verification failed');
console.debug('[E2E] Message verification failed', res, linkedReportActionID);
}
}, 3000);
}
Expand Down

0 comments on commit 1292ee4

Please sign in to comment.