Skip to content

Commit

Permalink
test: update test data
Browse files Browse the repository at this point in the history
  • Loading branch information
rafasdc committed Nov 25, 2024
1 parent 1a133ee commit a69e2e8
Showing 1 changed file with 24 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,16 @@ const mockQueryPayloadReceived = {
applicationMilestoneExcelDataByApplicationId: {
nodes: [],
},
applicationDependenciesByApplicationId: {
nodes: [
{
jsonData: {
connectedCoastNetworkDependent: 'Yes',
connectedCoastNetworkDependentDetails: 'TBD',
},
},
],
},
applicationFormTemplate9DataByApplicationId: {
nodes: [
{
Expand Down Expand Up @@ -599,15 +609,12 @@ const mockQueryPayloadAgreementSigned = {
allAssessments: {
nodes: [
{
assessmentDataType: 'screening',
assessmentDataType: 'technical',
jsonData: {
decision: 'Eligible',
nextStep: 'Assessment complete',
assignedTo: 'Someone',
targetDate: '2023-01-09',
contestingMap: ['Applicant is contesting the area map'],
crtcProjectDependent: true,
connectedCoastNetworkDependent: true,
},
},
],
Expand Down Expand Up @@ -887,6 +894,16 @@ const mockQueryPayloadAgreementSignedMissingSow = {
},
},
},
applicationDependenciesByApplicationId: {
nodes: [
{
jsonData: {
connectedCoastNetworkDependent: 'Yes',
connectedCoastNetworkDependentDetails: 'TBD',
},
},
],
},
projectInformation: {
jsonData: {
dateFundingAgreementSigned: '2023-12-02',
Expand Down Expand Up @@ -965,15 +982,12 @@ const mockQueryPayloadAgreementSignedMissingSow = {
allAssessments: {
nodes: [
{
assessmentDataType: 'screening',
assessmentDataType: 'technical',
jsonData: {
decision: 'Eligible',
nextStep: 'Assessment complete',
assignedTo: 'Someone',
targetDate: '2023-01-09',
contestingMap: ['Applicant is contesting the area map'],
crtcProjectDependent: true,
connectedCoastNetworkDependent: true,
},
},
],
Expand Down Expand Up @@ -1145,9 +1159,9 @@ describe('The Summary page', () => {

expect(screen.queryAllByText('(SOW)')).toHaveLength(0);
const alerts = screen.getAllByTestId('styled-alert');
expect(alerts).toHaveLength(4);
expect(alerts).toHaveLength(5);

fireEvent.mouseOver(alerts[0]);
fireEvent.mouseOver(alerts[1]);
expect(
await screen.findByText(
'Highlighted cells are null because SOW Excel table has not been uploaded in the portal'
Expand Down

0 comments on commit a69e2e8

Please sign in to comment.