sadpandajoe commented on code in PR #35584:
URL: https://github.com/apache/superset/pull/35584#discussion_r2418207967
##########
superset-frontend/src/features/home/ChartTable.test.tsx:
##########
@@ -115,3 +115,49 @@ test('renders mine tab on click', async () => {
expect(screen.getAllByText(/cool chart/i)).toHaveLength(3);
});
});
+
+test('handles chart export with correct ID and shows spinner', async () => {
+ const mockExport = jest.fn().mockImplementation(() => {
+ // Simulate async export that takes some time
+ return new Promise(resolve => setTimeout(resolve, 100));
+ });
+
+ jest.mock('src/utils/export', () => ({
Review Comment:
Should this be inside the test body? In `DashboardTable.test.tsx` it's
outside so wondering which is correct.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]