Skip to content

Commit

Permalink
Merge pull request #14548 from transcom/B-22055-QAE-Report
Browse files Browse the repository at this point in the history
B-22055
  • Loading branch information
r-mettler authored Jan 10, 2025
2 parents 60288aa + ee318f0 commit 0974c86
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions src/pages/Office/EvaluationReports/EvaluationReports.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,24 @@ const EvaluationReports = ({ customerInfo, grade, destinationDutyLocationPostalC
<Grid row>
<h1>Quality assurance reports</h1>
</Grid>
<GridContainer className={evaluationReportsStyles.evaluationReportSection}>
<Grid row>
<ShipmentQAEReports
reports={shipmentEvaluationReports}
shipments={shipments}
moveCode={moveCode}
customerInfo={customerInfo}
grade={grade}
destinationDutyLocationPostalCode={destinationDutyLocationPostalCode}
emptyText="No QAE reports have been submitted for this shipment"
setReportToDelete={setReportToDelete}
setIsDeleteModalOpen={setIsDeleteModalOpen}
isDeleteModalOpen={isDeleteModalOpen}
deleteReport={deleteReport}
isMoveLocked={isMoveLocked}
/>
</Grid>
</GridContainer>
<GridContainer className={evaluationReportsStyles.evaluationReportSection}>
<Grid row className={evaluationReportsStyles.counselingHeadingContainer}>
<h2>Counseling QAE reports ({counselingEvaluationReports.length})</h2>
Expand Down Expand Up @@ -143,24 +161,6 @@ const EvaluationReports = ({ customerInfo, grade, destinationDutyLocationPostalC
/>
</Grid>
</GridContainer>
<GridContainer className={evaluationReportsStyles.evaluationReportSection}>
<Grid row>
<ShipmentQAEReports
reports={shipmentEvaluationReports}
shipments={shipments}
moveCode={moveCode}
customerInfo={customerInfo}
grade={grade}
destinationDutyLocationPostalCode={destinationDutyLocationPostalCode}
emptyText="No QAE reports have been submitted for this shipment"
setReportToDelete={setReportToDelete}
setIsDeleteModalOpen={setIsDeleteModalOpen}
isDeleteModalOpen={isDeleteModalOpen}
deleteReport={deleteReport}
isMoveLocked={isMoveLocked}
/>
</Grid>
</GridContainer>
</GridContainer>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ describe('EvaluationReports', () => {
const h1 = await screen.getByRole('heading', { name: 'Quality assurance reports', level: 1 });
expect(h1).toBeInTheDocument();

expect(await screen.getByRole('heading', { name: 'Counseling QAE reports (0)', level: 2 })).toBeInTheDocument();
expect(await screen.getByRole('heading', { name: 'Shipment QAE reports (0)', level: 2 })).toBeInTheDocument();
expect(await screen.getByRole('heading', { name: 'Counseling QAE reports (0)', level: 2 })).toBeInTheDocument();
});

it('create report button is disabled when move is locked', async () => {
Expand Down

0 comments on commit 0974c86

Please sign in to comment.