diff --git a/backend/lcfs/tests/compliance_report/test_update_service.py b/backend/lcfs/tests/compliance_report/test_update_service.py index 12532c4e0..9fd0496f0 100644 --- a/backend/lcfs/tests/compliance_report/test_update_service.py +++ b/backend/lcfs/tests/compliance_report/test_update_service.py @@ -281,16 +281,6 @@ async def test_handle_submitted_status_with_existing_summary( report_id ) - # Ensure the adjust_balance method is called with the correct parameters - mock_org_service.adjust_balance.assert_called_once_with( - transaction_action=TransactionActionEnum.Reserved, - compliance_units=mock_report.summary.line_20_surplus_deficit_units, - organization_id=mock_report.organization_id, - ) - - # Check if the report was updated with the result of adjust_balance - assert mock_report.transaction == mock_org_service.adjust_balance.return_value - # Check if the summary is locked saved_summary = mock_repo.save_compliance_report_summary.call_args[0][0] assert saved_summary.is_locked == True diff --git a/frontend/src/views/ComplianceReports/__tests__/EditViewComplianceReports.test.jsx b/frontend/src/views/ComplianceReports/__tests__/EditViewComplianceReports.test.jsx index a3e38b0df..69595155c 100644 --- a/frontend/src/views/ComplianceReports/__tests__/EditViewComplianceReports.test.jsx +++ b/frontend/src/views/ComplianceReports/__tests__/EditViewComplianceReports.test.jsx @@ -506,7 +506,7 @@ describe('EditViewComplianceReport', () => { ) await waitFor(() => { fireEvent.scroll(window, { target: { pageYOffset: 0 } }) - expect(screen.getByLabelText('scroll to top')).toBeInTheDocument() + expect(screen.getByLabelText('scroll to bottom')).toBeInTheDocument() }) }) })