diff --git a/bciers/apps/reporting/src/app/components/complianceSummary/ComplianceSummaryForm.tsx b/bciers/apps/reporting/src/app/components/complianceSummary/ComplianceSummaryForm.tsx
index a2addf61cb..242cb1ea4e 100644
--- a/bciers/apps/reporting/src/app/components/complianceSummary/ComplianceSummaryForm.tsx
+++ b/bciers/apps/reporting/src/app/components/complianceSummary/ComplianceSummaryForm.tsx
@@ -15,24 +15,26 @@ interface Props {
versionId: number;
needsVerification: boolean;
summaryFormData: {
- attributableForReporting: string;
- reportingOnlyEmission: string;
- emissionsLimit: string;
- excessEmissions: string;
- creditedEmissions: string;
- regulatoryValues: {
- reductionFactor: string;
- tighteningRate: string;
- initialCompliancePeriod: string;
- compliancePeriod: string;
+ emissions_attributable_for_reporting: string;
+ reporting_only_emissions: string;
+ emissions_attributable_for_compliance: string;
+ emissions_limit: string;
+ excess_emissions: string;
+ credited_emissions: string;
+ regulatory_values: {
+ reduction_factor: string;
+ tightening_rate: string;
+ initial_compliance_period: string;
+ compliance_period: string;
};
products: {
name: string;
customUnit: string;
- annualProduction: string;
- emissionIntensity: string;
- allocatedIndustrialProcessEmissions: string;
- allocatedComplianceEmissions: string;
+ annual_production: string;
+ apr_dec_production: string;
+ emission_intensity: string;
+ allocated_industrial_process_emissions: string;
+ allocated_compliance_emissions: string;
}[];
};
taskListElements: TaskListElement[];
diff --git a/bciers/apps/reporting/src/tests/components/complianceSummary/ComplianceSummaryForm.test.tsx b/bciers/apps/reporting/src/tests/components/complianceSummary/ComplianceSummaryForm.test.tsx
index 867d94b503..6029b24a5e 100644
--- a/bciers/apps/reporting/src/tests/components/complianceSummary/ComplianceSummaryForm.test.tsx
+++ b/bciers/apps/reporting/src/tests/components/complianceSummary/ComplianceSummaryForm.test.tsx
@@ -15,25 +15,27 @@ vi.mock("next/navigation", () => ({
}));
const mockSummaryData = {
- attributableForReporting: "1000",
- reportingOnlyEmission: "1000",
- emissionsLimit: "1000",
- excessEmissions: "1000",
- creditedEmissions: "1000",
- regulatoryValues: {
- reductionFactor: "1000",
- tighteningRate: "1000",
- initialCompliancePeriod: "1000",
- compliancePeriod: "1000",
+ emissions_attributable_for_reporting: "1000",
+ reporting_only_emissions: "1000",
+ emissions_attributable_for_compliance: "1000",
+ emissions_limit: "1000",
+ excess_emissions: "1000",
+ credited_emissions: "1000",
+ regulatory_values: {
+ reduction_factor: "1000",
+ tightening_rate: "1000",
+ initial_compliance_period: "1000",
+ compliance_period: "1000",
},
products: [
{
name: "Pucks",
customUnit: "Goals",
- annualProduction: "1000",
- emissionIntensity: "1000",
- allocatedIndustrialProcessEmissions: "1000",
- allocatedComplianceEmissions: "1000",
+ annual_production: "1000",
+ apr_dec_production: "1000",
+ emission_intensity: "1000",
+ allocated_industrial_process_emissions: "1000",
+ allocated_compliance_emissions: "1000",
},
],
};
@@ -52,63 +54,65 @@ describe("ComplianceSummaryForm", () => {
vi.clearAllMocks();
});
- // it("should render the calculation summary data", async () => {
- // render(
- // ,
- // );
-
- // expect(
- // screen.getByLabelText("Emissions attributable for reporting").value,
- // ).toBe("1000");
- // expect(screen.getByLabelText("Reporting-only emissions").value).toBe(
- // "1000",
- // );
- // expect(screen.getByLabelText("Emissions limit").value).toBe("1000");
- // expect(screen.getByLabelText("Excess emissions").value).toBe("1000");
- // expect(screen.getByLabelText("Credited emissions").value).toBe("1000");
- // });
-
- // it("should render the regulatory values summary data", async () => {
- // render(
- // ,
- // );
-
- // expect(screen.getByLabelText("Reduction factor").value).toBe("1000");
- // expect(screen.getByLabelText("Tightening rate").value).toBe("1000");
- // expect(screen.getByLabelText("Initial compliance period").value).toBe(
- // "1000",
- // );
- // expect(screen.getByLabelText("Compliance period").value).toBe("1000");
- // });
-
- // it("should render the production summary data", async () => {
- // render(
- // ,
- // );
-
- // expect(screen.getByLabelText("Annual production").value).toBe("1000");
- // expect(
- // screen.getByLabelText("Weighted average emission intensity").value,
- // ).toBe("1000");
- // expect(
- // screen.getByLabelText("Emissions allocated to industrial process").value,
- // ).toBe("1000");
- // expect(
- // screen.getByLabelText("Emissions allocated to compliance").value,
- // ).toBe("1000");
- // });
+ it("should render the calculation summary data", async () => {
+ render(
+ ,
+ );
+
+ expect(
+ screen.getByLabelText("Emissions attributable for reporting").value,
+ ).toBe("1000");
+ expect(screen.getByLabelText("Reporting-only emissions").value).toBe(
+ "1000",
+ );
+ expect(screen.getByLabelText("Emissions limit").value).toBe("1000");
+ expect(screen.getByLabelText("Excess emissions").value).toBe("1000");
+ expect(screen.getByLabelText("Credited emissions").value).toBe("1000");
+ });
+
+ it("should render the regulatory values summary data", async () => {
+ render(
+ ,
+ );
+
+ expect(screen.getByLabelText("Reduction factor").value).toBe("1000");
+ expect(screen.getByLabelText("Tightening rate").value).toBe("1000");
+ expect(screen.getByLabelText("Initial compliance period").value).toBe(
+ "1000",
+ );
+ expect(screen.getByLabelText("Compliance period").value).toBe("1000");
+ });
+
+ it("should render the production summary data", async () => {
+ render(
+ ,
+ );
+
+ expect(screen.getByLabelText("Annual production").value).toBe("1000");
+ expect(
+ screen.getByLabelText("Production-weighted average emission intensity")
+ .value,
+ ).toBe("1000");
+ expect(
+ screen.getByLabelText("Allocated industrial process emissions").value,
+ ).toBe("1000");
+ expect(
+ screen.getByLabelText("Allocated Emissions attributable to compliance")
+ .value,
+ ).toBe("1000");
+ });
it("should render a back button that navigates to the additional information page", async () => {
render(