From 1292ee47e4ac377efa28f7961a5a4bc72660dc96 Mon Sep 17 00:00:00 2001 From: kirillzyusko Date: Fri, 29 Mar 2024 13:51:53 +0100 Subject: [PATCH 1/2] chore: logger to get additional information --- .../InvertedFlatList/BaseInvertedFlatList/index.e2e.tsx | 4 +++- src/libs/E2E/tests/linkingTest.e2e.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/InvertedFlatList/BaseInvertedFlatList/index.e2e.tsx b/src/components/InvertedFlatList/BaseInvertedFlatList/index.e2e.tsx index 5df39ec02c89..8bc6868f5a6d 100644 --- a/src/components/InvertedFlatList/BaseInvertedFlatList/index.e2e.tsx +++ b/src/components/InvertedFlatList/BaseInvertedFlatList/index.e2e.tsx @@ -10,14 +10,16 @@ type BaseInvertedFlatListProps = FlatListProps & { 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>) { const {shouldEnableAutoScrollToTopThreshold, ...rest} = props; + console.log("BaseInvertedFlatListE2e"); const handleViewableItemsChanged = useMemo( () => ({viewableItems}: {viewableItems: ViewToken[]}) => { + console.log("handleViewableItemsChanged", {viewableItems}); localViewableItems = viewableItems; }, [], diff --git a/src/libs/E2E/tests/linkingTest.e2e.ts b/src/libs/E2E/tests/linkingTest.e2e.ts index c48ffb5a8057..bd2c1c90764c 100644 --- a/src/libs/E2E/tests/linkingTest.e2e.ts +++ b/src/libs/E2E/tests/linkingTest.e2e.ts @@ -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()); @@ -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); } From c189fabdf2e4b2e3b82ca229d0d578576351b404 Mon Sep 17 00:00:00 2001 From: kirillzyusko Date: Fri, 29 Mar 2024 13:53:22 +0100 Subject: [PATCH 2/2] chore: to speed up a process let's run only one test --- tests/e2e/config.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/e2e/config.ts b/tests/e2e/config.ts index 52d284b9dd86..e97a4c602ef1 100644 --- a/tests/e2e/config.ts +++ b/tests/e2e/config.ts @@ -66,14 +66,14 @@ export default { * @type {Object.} */ 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, @@ -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: {