diff --git a/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte b/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte index f281802c5ca..1e83feabdb6 100644 --- a/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte +++ b/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte @@ -123,7 +123,7 @@ label: $i18n.reporting.timestamp, }, ]; - const fileName = `icp_transactions_export_${period}_${formatDateCompact(new Date())}`; + const fileName = `icp_transactions_export_${formatDateCompact(new Date())}`; await generateCsvFileToSave({ datasets, diff --git a/frontend/src/tests/lib/components/reporting/ReportingTransactionsButton.spec.ts b/frontend/src/tests/lib/components/reporting/ReportingTransactionsButton.spec.ts index cf21c4f465d..35686e5c83f 100644 --- a/frontend/src/tests/lib/components/reporting/ReportingTransactionsButton.spec.ts +++ b/frontend/src/tests/lib/components/reporting/ReportingTransactionsButton.spec.ts @@ -102,7 +102,7 @@ describe("ReportingTransactionsButton", () => { await po.click(); await runResolvedPromises(); - const expectedFileName = `icp_transactions_export_all_20231014`; + const expectedFileName = `icp_transactions_export_20231014`; expect(spyGenerateCsvFileToSave).toHaveBeenCalledWith( expect.objectContaining({ fileName: expectedFileName, @@ -261,13 +261,6 @@ describe("ReportingTransactionsButton", () => { await po.click(); await runResolvedPromises(); - const expectedFileName = `icp_transactions_export_year-to-date_20231014`; - expect(spyGenerateCsvFileToSave).toHaveBeenCalledWith( - expect.objectContaining({ - fileName: expectedFileName, - }) - ); - const expectation = [mockMainAccount, mockNeuron]; expect(spyQueryNeurons).toBeCalledTimes(1); expect(spyExportDataService).toHaveBeenCalledTimes(1);