Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
WojtekBoman committed Apr 16, 2024
1 parent 50bcada commit 86a01f7
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -875,8 +875,7 @@ const CONST = {
},
TIMING: {
CALCULATE_MOST_RECENT_LAST_MODIFIED_ACTION: 'calc_most_recent_last_modified_action',
// ASK: Should we also update this name?
CHAT_FINDER_RENDER: 'chat_finder',
CHAT_FINDER_RENDER: 'search_render',
CHAT_RENDER: 'chat_render',
OPEN_REPORT: 'open_report',
HOMEPAGE_INITIAL_RENDER: 'homepage_initial_render',
Expand Down
1 change: 0 additions & 1 deletion src/libs/E2E/reactNativeLaunchingTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ if (!appInstanceId) {
// import your test here, define its name and config first in e2e/config.js
const tests: Tests = {
[E2EConfig.TEST_NAMES.AppStartTime]: require('./tests/appStartTimeTest.e2e').default,
// ASK: Should we also update this name?
[E2EConfig.TEST_NAMES.OpenChatFinderPage]: require('./tests/openChatFinderPageTest.e2e').default,
[E2EConfig.TEST_NAMES.ChatOpening]: require('./tests/chatOpeningTest.e2e').default,
[E2EConfig.TEST_NAMES.ReportTyping]: require('./tests/reportTypingTest.e2e').default,
Expand Down
6 changes: 3 additions & 3 deletions src/libs/E2E/tests/openChatFinderPageTest.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ROUTES from '@src/ROUTES';

const test = () => {
// check for login (if already logged in the action will simply resolve)
console.debug('[E2E] Logging in for chat finding');
console.debug('[E2E] Logging in for chat finder');

E2ELogin().then((neededLogin: boolean): Promise<Response> | undefined => {
if (neededLogin) {
Expand All @@ -19,7 +19,7 @@ const test = () => {
);
}

console.debug('[E2E] Logged in, getting chat finding metrics and submitting them…');
console.debug('[E2E] Logged in, getting chat finder metrics and submitting them…');

Performance.subscribeToMeasurements((entry) => {
if (entry.name === CONST.TIMING.SIDEBAR_LOADED) {
Expand All @@ -29,7 +29,7 @@ const test = () => {
}

console.debug(`[E2E] Entry: ${JSON.stringify(entry)}`);
if (entry.name !== CONST.TIMING.SEARCH_RENDER) {
if (entry.name !== CONST.TIMING.CHAT_FINDER_RENDER) {
return;
}

Expand Down
2 changes: 0 additions & 2 deletions src/pages/ChatFinderPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ type ChatFinderPageSectionItem = {
type ChatFinderPageSectionList = ChatFinderPageSectionItem[];

const setPerformanceTimersEnd = () => {
// ASK: Should we also update this name?
Timing.end(CONST.TIMING.CHAT_FINDER_RENDER);
Performance.markEnd(CONST.TIMING.CHAT_FINDER_RENDER);
};
Expand All @@ -66,7 +65,6 @@ function ChatFinderPage({betas, isSearchingForReports, navigation}: ChatFinderPa
const [searchValue, debouncedSearchValue, setSearchValue] = useDebouncedState('');

useEffect(() => {
// ASK: Should we also update this name?
Timing.start(CONST.TIMING.CHAT_FINDER_RENDER);
Performance.markStart(CONST.TIMING.CHAT_FINDER_RENDER);
}, []);
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const OUTPUT_DIR = process.env.WORKING_DIRECTORY || './tests/e2e/results';
// add your test name here …
const TEST_NAMES = {
AppStartTime: 'App start time',
// ASK: Should we also update this name?
OpenChatFinderPage: 'Open chat finder page TTI',
ReportTyping: 'Report typing',
ChatOpening: 'Chat opening',
Expand Down

0 comments on commit 86a01f7

Please sign in to comment.