Skip to content

Commit

Permalink
test: use latest committed data in collapsible form widget test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevespi committed May 20, 2024
1 parent ad1e2ee commit 16eda35
Showing 1 changed file with 62 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,35 +50,69 @@ const mockQueryPayload = {
name: "Test Project Status Name",
},
},
formChangeByPreviousFormChangeId: {
newFormData: {
proposalReference: "Test Proposal Reference PREVIOUS",
operatorId: 1,
fundingStreamRfpId: 1,
projectStatusId: 1,
summary: "Test Summary",
projectName: "Test Project Name",
totalFundingRequest: 100.0,
score: 1,
projectType: "test project type PREVIOUS",
},
asProject: {
operatorByOperatorId: {
legalName: "Test Legal Name PREVIOUS",
bcRegistryId: "Test BC Registry ID",
},
fundingStreamRfpByFundingStreamRfpId: {
year: 2020,
fundingStreamByFundingStreamId: {
description: "Test Funding Stream Description",
},
},
projectStatusByProjectStatusId: {
name: "Test Project Status Name",
},
},
},
// formChangeByPreviousFormChangeId: {
// newFormData: {
// proposalReference: "Test Proposal Reference PREVIOUS",
// operatorId: 1,
// fundingStreamRfpId: 1,
// projectStatusId: 1,
// summary: "Test Summary",
// projectName: "Test Project Name",
// totalFundingRequest: 100.0,
// score: 1,
// projectType: "test project type PREVIOUS",
// },
// asProject: {
// operatorByOperatorId: {
// legalName: "Test Legal Name PREVIOUS",
// bcRegistryId: "Test BC Registry ID",
// },
// fundingStreamRfpByFundingStreamRfpId: {
// year: 2020,
// fundingStreamByFundingStreamId: {
// description: "Test Funding Stream Description",
// },
// },
// projectStatusByProjectStatusId: {
// name: "Test Project Status Name",
// },
// },
// },
},
latestCommittedProjectFormChanges: {
edges: [
{
node: {
newFormData: {
proposalReference: "Test Proposal Reference PREVIOUS",
operatorId: 1,
fundingStreamRfpId: 1,
projectStatusId: 1,
summary: "Test Summary",
projectName: "Test Project Name",
totalFundingRequest: 100.0,
score: 1,
projectType: "test project type PREVIOUS",
},
asProject: {
operatorByOperatorId: {
legalName: "Test Legal Name PREVIOUS",
bcRegistryId: "Test BC Registry ID",
},
fundingStreamRfpByFundingStreamRfpId: {
year: 2020,
fundingStreamByFundingStreamId: {
description: "Test Funding Stream Description",
},
},
projectStatusByProjectStatusId: {
name: "Test Project Status Name",
},
},
}
}
]
}
};
},
};
Expand Down

0 comments on commit 16eda35

Please sign in to comment.