Skip to content

Commit

Permalink
Merge branch 'fix/e2e-tests' into vit-e2edebugEaster
Browse files Browse the repository at this point in the history
  • Loading branch information
mountiny committed Mar 29, 2024
2 parents 65a122f + c189fab commit eb23918
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 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
12 changes: 6 additions & 6 deletions tests/e2e/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ export default {
* @type {Object.<string, TestConfig>}
*/
TESTS_CONFIG: {
[TEST_NAMES.AppStartTime]: {
/*[TEST_NAMES.AppStartTime]: {
name: TEST_NAMES.AppStartTime,
// ... any additional config you might need
},
[TEST_NAMES.OpenSearchPage]: {
},*/
/*[TEST_NAMES.OpenSearchPage]: {
name: TEST_NAMES.OpenSearchPage,
},
},*/
// TODO: Fix text and enable again
// [TEST_NAMES.ReportTyping]: {
// name: TEST_NAMES.ReportTyping,
Expand All @@ -83,11 +83,11 @@ export default {
// // Crowded Policy (Do Not Delete) Report, has a input bar available:
// reportID: '8268282951170052',
// },
[TEST_NAMES.ChatOpening]: {
/*[TEST_NAMES.ChatOpening]: {
name: TEST_NAMES.ChatOpening,
// #announce Chat with many messages
reportID: '5421294415618529',
},
},*/
[TEST_NAMES.Linking]: {
name: TEST_NAMES.Linking,
reportScreen: {
Expand Down

0 comments on commit eb23918

Please sign in to comment.