-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Part of QBO Export and Error Handling in NewDot
Main issue: https://github.com/Expensify/Expensify/issues/350150
Doc section: https://docs.google.com/document/d/1aQl-AK_F6IqszWYG2aEllTsD5x3h4b8Zu0XEG0LuQ08/edit#heading=h.pmmx5zp5s75j
Project: #wave-collect
Feature Description
As described in the doc, we need to display a RBR when there are errors in a policy connection’s last sync.
The RBR will show on the path to the integration connection settings (Avatar > Workspaces > [Workspace name] > Accounting > Connections):
- LHN Avatar: check if policy.connection.lastSync.isSuccessful is false in the Indicator
- InitialSettingsPage: add the same check to hasGlobalWorkspaceSettingsRBR
- WorkspaceInitialPage: add the same check to the connections menu item here
- PolicyAccountingPage: use policy.connection.lastSync.errorMessage to populate the errorText option for the QBO menu item here
When the error is a credentials error (policy.connection.lastSync.isAuthenticationError is true), we’ll replace the ‘Sync now’ option in the connection’s 3-dot menu with a ‘Reconnect’ option here. The option will restart the Quickbooks Auth flow as described in our initial QBO doc.
Manual Test Steps
Prerequisites
- Collect workspace with an admin and member
- Setup QBO integration connection
Steps
- Log into QBO and disconnect the Expensify app (Menu > Apps > Overview > Expensify 3-dot menu > Disconnect)
- Log into NewDot as the admin
- Verify there's a RBR on the path: Avatar > Workspaces > [Workspace name] > Accounting > QBO
- Verify a red error message appears on the connection explaining the issue
- Select QBO’s 3-dot menu
- Verify there’s a “Enter credentials” option
- Select “Enter credentials”
- Verify a new window opens to log into QBO
Automated Tests
- Add a test to IS verifying
errorMessageandisAuthenticationErrorare set on the IntegrationLastSync - Add an Auth test for
SavePolicyverifying that anINTEGRATIONSMESSAGEaction gets posted to the #admins room when the last sync is a failure
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~01cc92666d46e99569
- Upwork Job ID: 1803462924011290436
- Last Price Increase: 2024-06-19