@@ -3058,6 +3058,32 @@ const mockQueryPayload = {
3058
3058
sessionSub : '54f0aa1ad196497bb80d05b21c20a1ef@bceidbasic' ,
3059
3059
tableName : 'application_communities' ,
3060
3060
} ,
3061
+ {
3062
+ applicationId : 1 ,
3063
+ createdAt : '2025-03-06T19:50:30.265459+00:00' ,
3064
+ createdBy : 243 ,
3065
+ externalAnalyst : null ,
3066
+ familyName : 'Bar' ,
3067
+ item : null ,
3068
+ givenName : 'Foo' ,
3069
+ op : 'INSERT' ,
3070
+ record : {
3071
+ id : 1 ,
3072
+ created_at : '2025-03-06T19:50:30.265459+00:00' ,
3073
+ created_by : 243 ,
3074
+ updated_at : '2025-03-06T19:50:30.265459+00:00' ,
3075
+ updated_by : 243 ,
3076
+ archived_at : null ,
3077
+ archived_by : null ,
3078
+ application_id : 1 ,
3079
+ fnha_contribution : 10000 ,
3080
+ reason_for_change : 'Some test reason' ,
3081
+ } ,
3082
+ oldRecord : null ,
3083
+ recordId : '5ebdd9d8-9f9f-53cb-abc5-580bee710b73' ,
3084
+ sessionSub : 'feae2edcecbd418f9564bb170504321b@idir' ,
3085
+ tableName : 'application_fnha_contribution' ,
3086
+ } ,
3061
3087
] ,
3062
3088
} ,
3063
3089
formData : {
@@ -3757,7 +3783,7 @@ describe('The index page', () => {
3757
3783
3758
3784
const diffTables = screen . getAllByTestId ( 'diff-table' ) ;
3759
3785
3760
- expect ( diffTables . length ) . toBe ( 31 ) ;
3786
+ expect ( diffTables . length ) . toBe ( 32 ) ;
3761
3787
3762
3788
diffTables . forEach ( ( table ) => {
3763
3789
expect ( table ) . toBeVisible ( ) ;
@@ -4017,6 +4043,19 @@ describe('The index page', () => {
4017
4043
) ;
4018
4044
expect ( removedCommunityRows ) . toHaveLength ( 1 ) ;
4019
4045
} ) ;
4046
+
4047
+ it ( 'shows the correct history for fnha contribution' , async ( ) => {
4048
+ pageTestingHelper . loadQuery ( ) ;
4049
+ pageTestingHelper . renderPage ( ) ;
4050
+
4051
+ const fnhaHistory = screen . getAllByTestId ( 'history-fnha-contribution' ) [ 0 ] ;
4052
+
4053
+ expect ( fnhaHistory ) . toBeInTheDocument ( ) ;
4054
+
4055
+ expect ( fnhaHistory ) . toHaveTextContent (
4056
+ 'Foo Bar updated FNHA Contribution on Mar 6, 2025, 11:50 a.m.'
4057
+ ) ;
4058
+ } ) ;
4020
4059
} ) ;
4021
4060
4022
4061
describe ( 'The filter' , ( ) => {
@@ -4042,7 +4081,7 @@ describe('The filter', () => {
4042
4081
const dropdown = document . querySelector ( '[role="listbox"]' ) as HTMLElement ;
4043
4082
const options = within ( dropdown ! ) . getAllByRole ( 'option' ) ;
4044
4083
const optionNames = options . map ( ( option ) => option . textContent ?. trim ( ) ) ;
4045
- expect ( options . length ) . toEqual ( 15 ) ;
4084
+ expect ( options . length ) . toEqual ( 16 ) ;
4046
4085
4047
4086
const expectedOptionNames = [
4048
4087
'Amendment' ,
@@ -4053,6 +4092,7 @@ describe('The filter', () => {
4053
4092
'Claims & progress report' ,
4054
4093
'Community progress report' ,
4055
4094
'Conditional approval' ,
4095
+ 'Fnha contribution' ,
4056
4096
'Funding agreement, sow & map' ,
4057
4097
'Lead' ,
4058
4098
'Milestone report' ,
0 commit comments