From 1cc650ea5727e345f307ea1d6eb3fbf1c5615072 Mon Sep 17 00:00:00 2001 From: Yusef Habib Fernandez Date: Tue, 17 Dec 2024 10:57:48 +0100 Subject: [PATCH 1/8] new util function --- frontend/src/tests/lib/utils/reporting.utils.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/tests/lib/utils/reporting.utils.spec.ts b/frontend/src/tests/lib/utils/reporting.utils.spec.ts index 7261426d549..6254a2fa4c6 100644 --- a/frontend/src/tests/lib/utils/reporting.utils.spec.ts +++ b/frontend/src/tests/lib/utils/reporting.utils.spec.ts @@ -6,6 +6,7 @@ import { convertPeriodToNanosecondRange, convertToCsv, generateCsvFileToSave, + periodToDateRangeTimestampts, type CsvHeader, } from "$lib/utils/reporting.utils"; import { mockPrincipal } from "$tests/mocks/auth.store.mock"; From 7d12bfb011a85c57e648e99e9f68059153bce223 Mon Sep 17 00:00:00 2001 From: Yusef Habib Fernandez Date: Tue, 17 Dec 2024 11:53:09 +0100 Subject: [PATCH 2/8] car --- frontend/src/lib/utils/reporting.utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/lib/utils/reporting.utils.ts b/frontend/src/lib/utils/reporting.utils.ts index d5381e7a97f..fe7a4ebe0dd 100644 --- a/frontend/src/lib/utils/reporting.utils.ts +++ b/frontend/src/lib/utils/reporting.utils.ts @@ -1,3 +1,4 @@ +import type { TransactionResults } from "$lib/services/reporting.services"; import type { ReportingPeriod, TransactionResults, From e7b90b72d3358466390c6a6709ffe4f83beae426 Mon Sep 17 00:00:00 2001 From: Yusef Habib Fernandez Date: Tue, 17 Dec 2024 13:35:00 +0100 Subject: [PATCH 3/8] clean up imports missing import --- frontend/src/lib/utils/reporting.utils.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/lib/utils/reporting.utils.ts b/frontend/src/lib/utils/reporting.utils.ts index fe7a4ebe0dd..d5381e7a97f 100644 --- a/frontend/src/lib/utils/reporting.utils.ts +++ b/frontend/src/lib/utils/reporting.utils.ts @@ -1,4 +1,3 @@ -import type { TransactionResults } from "$lib/services/reporting.services"; import type { ReportingPeriod, TransactionResults, From 681831e7220a79f9820130bf4401cdb010932571 Mon Sep 17 00:00:00 2001 From: Yusef Habib Fernandez Date: Tue, 17 Dec 2024 17:13:51 +0100 Subject: [PATCH 4/8] WIP --- .../reporting/ReportingTransactions.svelte | 11 +- .../ReportingTransactionsButton.svelte | 1 + .../ReportingDateRangeSelector.spec.ts | 2 +- .../reporting/ReportingTransactions.spec.ts | 124 ++++++++++++++++++ .../ReportingTransactionsButton.spec.ts | 2 +- .../ReportingDateRangeSelector.page-object.ts | 15 +++ .../ReportingTransactions.page-object.ts | 30 +++++ 7 files changed, 178 insertions(+), 7 deletions(-) create mode 100644 frontend/src/tests/lib/components/reporting/ReportingTransactions.spec.ts create mode 100644 frontend/src/tests/page-objects/ReportingTransactions.page-object.ts diff --git a/frontend/src/lib/components/reporting/ReportingTransactions.svelte b/frontend/src/lib/components/reporting/ReportingTransactions.svelte index ebfe39313b4..166494daf91 100644 --- a/frontend/src/lib/components/reporting/ReportingTransactions.svelte +++ b/frontend/src/lib/components/reporting/ReportingTransactions.svelte @@ -1,19 +1,20 @@ -
+

{$i18n.reporting.transactions_title}

{$i18n.reporting.transactions_description}

- + + +