Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Apr 23, 2024
1 parent 77f9250 commit 4d43e9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,28 +205,12 @@ describe('ReviewSubmit', () => {
)

await waitFor(() => {
const contractDocRow = screen.getByRole('row', {
name: /contract document/,
})
expect(
within(contractDocRow).getByText('1/1/24')
).toBeInTheDocument()
const contractSupporting1Row = screen.getByRole('row', {
name: /contractSupporting1/,
})
expect(
within(contractSupporting1Row).getByText('1/15/24')
).toBeInTheDocument()
const rateDocRow = screen.getByRole('row', {
name: /rate certification/,
})
expect(within(rateDocRow).getByText('1/13/24')).toBeInTheDocument()
const rateSupporting1Row = screen.getByRole('row', {
name: /rateSupporting1/,
})
expect(
within(rateSupporting1Row).getByText('1/15/24')
).toBeInTheDocument()
const rows = screen.getAllByRole('row')
expect(rows).toHaveLength(4)
expect(within(rows[0]).getByText('Date added')).toBeInTheDocument()
expect(within(rows[1]).getByText('2/2/23')).toBeInTheDocument()
expect(within(rows[2]).getByText('Date added')).toBeInTheDocument()
expect(within(rows[3]).getByText('3/2/23')).toBeInTheDocument()
})
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ function mockContractPackageUnlocked(
s3URL: 's3://bucketname/one-two/one-two.png',
sha256: 'fakesha',
name: 'one two',
dateAdded: new Date()
dateAdded: new Date('02/02/2023')
},
],
contractDateStart: new Date('02/02/2023'),
Expand Down Expand Up @@ -539,7 +539,7 @@ function mockContractPackageUnlocked(
s3URL: 's3://bucketname/key/rate',
sha256: 'fakesha',
name: 'rate',
dateAdded: new Date()
dateAdded: new Date('03/02/2023')
},
],
supportingDocuments: [],
Expand Down

0 comments on commit 4d43e9c

Please sign in to comment.