From 13f4925ba9c055c1b088c90ee78e87fc806bd094 Mon Sep 17 00:00:00 2001 From: Florent De Neve Date: Thu, 23 Nov 2023 10:41:49 -0400 Subject: [PATCH 1/2] Remove all unused mock betas --- src/CONST.ts | 70 --------------------------- src/libs/E2E/apiMocks/openApp.ts | 73 ----------------------------- src/libs/E2E/apiMocks/signinUser.ts | 73 ----------------------------- 3 files changed, 216 deletions(-) diff --git a/src/CONST.ts b/src/CONST.ts index 436ac4ebbc31..6f388ae93b73 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -260,76 +260,6 @@ const CONST = { THREADS: 'threads', CUSTOM_STATUS: 'customStatus', NEW_DOT_SAML: 'newDotSAML', - PDF_META_STORE: 'pdfMetaStore', - REPORT_ACTION_CONTEXT_MENU: 'reportActionContextMenu', - SUBMIT_POLICY: 'submitPolicy', - ATTENDEES: 'attendees', - AUTO_EXPORT: 'autoExport', - AUTO_EXPORT_INTACCT: 'autoExportIntacct', - AUTO_EXPORT_QBO: 'autoExportQbo', - AUTO_EXPORT_XERO: 'autoExportXero', - AUTO_JOIN_POLICY: 'autoJoinPolicy', - AUTOMATED_TAX_EXEMPTION: 'automatedTaxExemption', - BILL_PAY: 'billPay', - CATEGORY_DEFAULT_TAX: 'categoryDefaultTax', - COLLECTABLE_DEPOSIT_ACCOUNTS: 'collectableDepositAccounts', - CONCIERGE_TRAVEL: 'conciergeTravel', - CONNECTED_CARDS: 'connectedCards', - DISCREPANCY: 'discrepancy', - DOMAIN_CONTACT_BILLING: 'domainContactBilling', - DOMAIN_TWO_FACTOR_AUTH: 'domainTwoFactorAuth', - DUPLICATE_DETECTION: 'duplicateDetection', - EMAIL_SUPPRESSION_BETA: 'emailSuppressionBeta', - EXPENSES_V2: 'expensesV2', - EXPENSIFY_CARD: 'expensifyCard', - EXPENSIFY_CARD_INTACCT_RECONCILIATION: 'expensifyCardIntacctReconciliation', - EXPENSIFY_CARD_NETSUITE_RECONCILIATION: 'expensifyCardNetSuiteReconciliation', - EXPENSIFY_CARD_QBO_RECONCILIATION: 'expensifyCardQBOReconciliation', - EXPENSIFY_CARD_RAPID_INCREASE_FRAUD: 'expensifyCardRapidIncreaseFraud', - EXPENSIFY_CARD_XERO_RECONCILIATION: 'expensifyCardXeroReconciliation', - EXPENSIFY_ORG: 'expensifyOrg', - FIX_VIOLATION_PUSH_NOTIFICATION: 'fixViolationPushNotification', - FREE_PLAN_FULL_LAUNCH: 'freePlanFullLaunch', - FREE_PLAN_SOFT_LAUNCH: 'freePlanSoftLaunch', - GUSTO: 'gusto', - INBOX_CACHE: 'inboxCache', - INBOX_HIDDEN_TASKS: 'inboxHiddenTasks', - INDIRECT_INTEGRATION_SETUP: 'indirectIntegrationSetup', - IOU: 'IOU', - JOIN_POLICY: 'joinPolicy', - LOAD_POLICY_ASYNC: 'loadPolicyAsync', - MAP_RECEIPT: 'mapReceipt', - MERGE_API: 'mergeAPI', - MOBILE_REALTIME_REPORT_COMMENTS: 'mobileRealtimeReportComments', - MOBILE_SECURE_RECEIPTS: 'mobileSecureReceipts', - MONTHLY_SETTLEMENT: 'monthlySettlement', - NAMES_AND_AVATARS: 'namesAndAvatars', - NATIVE_CHAT: 'nativeChat', - NEW_PRICING: 'newPricing', - NEWSLETTER_THREE: 'newsletterThree', - NEXT_STEPS: 'nextSteps', - OPEN_FACE_HAMBURGER: 'openFaceHamburger', - PER_DIEM: 'perDiem', - PER_DIEM_INTERNATIONAL: 'perDiemInternational', - PRICING_COPY_CHANGES: 'pricingCopyChanges', - QBO_INVOICES: 'qboInvoices', - QUICKBOOKS_DESKTOP_V2: 'quickbooksDesktopV2', - REALTIME_REPORT_COMMENTS: 'realtimeReportComments', - S2W_ANNOUNCEMENT: 's2wAnnouncement', - SCHEDULED_AUTO_REPORTING: 'scheduledAutoReporting', - SECURE_RECEIPTS: 'secureReceipts', - SECURE_RECEIPTS_REPORTS: 'secureReceiptsReports', - SELF_SERVICE_HARD_LAUNCH: 'selfServiceHardLaunch', - SEND_MONEY: 'sendMoney', - SMART_SCAN_USER_DISPUTES: 'smartScanUserDisputes', - SMS_SIGN_UP: 'smsSignUp', - STRIPE_CONNECT: 'stripeConnect', - SUMMARY_EMAIL: 'summaryEmail', - SWIPE_TO_WIN: 'swipeToWin', - TAX_FOR_MILEAGE: 'taxForMileage', - TWO_FACTOR_AUTH: 'twoFactorAuth', - VENMO_INTEGRATION: 'venmoIntegration', - ZENEFITS_INTEGRATION: 'zenefitsIntegration', VIOLATIONS: 'violations', }, BUTTON_STATES: { diff --git a/src/libs/E2E/apiMocks/openApp.ts b/src/libs/E2E/apiMocks/openApp.ts index 13fc9f1f6784..3e22948654bc 100644 --- a/src/libs/E2E/apiMocks/openApp.ts +++ b/src/libs/E2E/apiMocks/openApp.ts @@ -1459,79 +1459,6 @@ const openApp = (): Response => ({ key: 'betas', value: [ 'all', - 'pdfMetaStore', - 'reportActionContextMenu', - 'submitPolicy', - 'attendees', - 'autoExport', - 'autoExportIntacct', - 'autoExportQbo', - 'autoExportXero', - 'autoJoinPolicy', - 'automatedTaxExemption', - 'billPay', - 'categoryDefaultTax', - 'collectableDepositAccounts', - 'conciergeTravel', - 'connectedCards', - 'discrepancy', - 'domainContactBilling', - 'domainTwoFactorAuth', - 'duplicateDetection', - 'emailSuppressionBeta', - 'expensesV2', - 'expensifyCard', - 'expensifyCardIntacctReconciliation', - 'expensifyCardNetSuiteReconciliation', - 'expensifyCardQBOReconciliation', - 'expensifyCardRapidIncreaseFraud', - 'expensifyCardXeroReconciliation', - 'expensifyOrg', - 'fixViolationPushNotification', - 'freePlan', - 'freePlanFullLaunch', - 'freePlanSoftLaunch', - 'gusto', - 'inboxCache', - 'inboxHiddenTasks', - 'indirectIntegrationSetup', - 'IOU', - 'joinPolicy', - 'loadPolicyAsync', - 'mapReceipt', - 'mergeAPI', - 'mobileRealtimeReportComments', - 'mobileSecureReceipts', - 'monthlySettlement', - 'namesAndAvatars', - 'nativeChat', - 'newPricing', - 'newsletterThree', - 'nextSteps', - 'openFaceHamburger', - 'pdfMetaStore', - 'perDiem', - 'perDiemInternational', - 'pricingCopyChanges', - 'qboInvoices', - 'quickbooksDesktopV2', - 'realtimeReportComments', - 's2wAnnouncement', - 'scheduledAutoReporting', - 'secureReceipts', - 'secureReceiptsReports', - 'selfServiceHardLaunch', - 'sendMoney', - 'smartScanUserDisputes', - 'smsSignUp', - 'stripeConnect', - 'submitPolicy', - 'summaryEmail', - 'swipeToWin', - 'taxForMileage', - 'twoFactorAuth', - 'venmoIntegration', - 'zenefitsIntegration', ], }, { diff --git a/src/libs/E2E/apiMocks/signinUser.ts b/src/libs/E2E/apiMocks/signinUser.ts index d94d2fda9016..55b89ea6b3db 100644 --- a/src/libs/E2E/apiMocks/signinUser.ts +++ b/src/libs/E2E/apiMocks/signinUser.ts @@ -38,79 +38,6 @@ const signinUser = ({email}: SigninParams): Response => ({ key: 'betas', value: [ 'all', - 'pdfMetaStore', - 'reportActionContextMenu', - 'submitPolicy', - 'attendees', - 'autoExport', - 'autoExportIntacct', - 'autoExportQbo', - 'autoExportXero', - 'autoJoinPolicy', - 'automatedTaxExemption', - 'billPay', - 'categoryDefaultTax', - 'collectableDepositAccounts', - 'conciergeTravel', - 'connectedCards', - 'discrepancy', - 'domainContactBilling', - 'domainTwoFactorAuth', - 'duplicateDetection', - 'emailSuppressionBeta', - 'expensesV2', - 'expensifyCard', - 'expensifyCardIntacctReconciliation', - 'expensifyCardNetSuiteReconciliation', - 'expensifyCardQBOReconciliation', - 'expensifyCardRapidIncreaseFraud', - 'expensifyCardXeroReconciliation', - 'expensifyOrg', - 'fixViolationPushNotification', - 'freePlan', - 'freePlanFullLaunch', - 'freePlanSoftLaunch', - 'gusto', - 'inboxCache', - 'inboxHiddenTasks', - 'indirectIntegrationSetup', - 'IOU', - 'joinPolicy', - 'loadPolicyAsync', - 'mapReceipt', - 'mergeAPI', - 'mobileRealtimeReportComments', - 'mobileSecureReceipts', - 'monthlySettlement', - 'namesAndAvatars', - 'nativeChat', - 'newPricing', - 'newsletterThree', - 'nextSteps', - 'openFaceHamburger', - 'pdfMetaStore', - 'perDiem', - 'perDiemInternational', - 'pricingCopyChanges', - 'qboInvoices', - 'quickbooksDesktopV2', - 'realtimeReportComments', - 's2wAnnouncement', - 'scheduledAutoReporting', - 'secureReceipts', - 'secureReceiptsReports', - 'selfServiceHardLaunch', - 'sendMoney', - 'smartScanUserDisputes', - 'smsSignUp', - 'stripeConnect', - 'submitPolicy', - 'summaryEmail', - 'swipeToWin', - 'taxForMileage', - 'twoFactorAuth', - 'venmoIntegration', - 'zenefitsIntegration', ], }, { From 6c74c47b391e4f4f51f2a7956271d359dbf38c34 Mon Sep 17 00:00:00 2001 From: Florent De Neve Date: Thu, 23 Nov 2023 11:28:38 -0400 Subject: [PATCH 2/2] run prettier --- src/libs/E2E/apiMocks/openApp.ts | 4 +--- src/libs/E2E/apiMocks/signinUser.ts | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/libs/E2E/apiMocks/openApp.ts b/src/libs/E2E/apiMocks/openApp.ts index 3e22948654bc..a0583d8439c0 100644 --- a/src/libs/E2E/apiMocks/openApp.ts +++ b/src/libs/E2E/apiMocks/openApp.ts @@ -1457,9 +1457,7 @@ const openApp = (): Response => ({ { onyxMethod: 'set', key: 'betas', - value: [ - 'all', - ], + value: ['all'], }, { onyxMethod: 'merge', diff --git a/src/libs/E2E/apiMocks/signinUser.ts b/src/libs/E2E/apiMocks/signinUser.ts index 55b89ea6b3db..a7d841196c48 100644 --- a/src/libs/E2E/apiMocks/signinUser.ts +++ b/src/libs/E2E/apiMocks/signinUser.ts @@ -36,9 +36,7 @@ const signinUser = ({email}: SigninParams): Response => ({ { onyxMethod: 'set', key: 'betas', - value: [ - 'all', - ], + value: ['all'], }, { onyxMethod: 'merge',