diff --git a/services/app-web/src/pages/StateSubmission/ContractDetails/ContractDetails.test.tsx b/services/app-web/src/pages/StateSubmission/ContractDetails/ContractDetails.test.tsx index 7f05323439..8e4facd193 100644 --- a/services/app-web/src/pages/StateSubmission/ContractDetails/ContractDetails.test.tsx +++ b/services/app-web/src/pages/StateSubmission/ContractDetails/ContractDetails.test.tsx @@ -71,7 +71,9 @@ describe('ContractDetails', () => { ) // check hint text - await screen.findByText('Supporting documents can be added later.') + await screen.findByText( + 'Supporting documents can be added later. If you have additional contract actions, you must submit them in a separate submission.' + ) await screen.findByRole('link', { name: /Document definitions/ }) // check file input presences diff --git a/services/app-web/src/pages/StateSubmission/Documents/Documents.test.tsx b/services/app-web/src/pages/StateSubmission/Documents/Documents.test.tsx index 77b3fb1ef1..33dcbbbf9e 100644 --- a/services/app-web/src/pages/StateSubmission/Documents/Documents.test.tsx +++ b/services/app-web/src/pages/StateSubmission/Documents/Documents.test.tsx @@ -65,7 +65,7 @@ describe('Documents', () => { ) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) expect(input).toBeInTheDocument() await userEvent.upload(input, [TEST_DOC_FILE]) @@ -89,7 +89,7 @@ describe('Documents', () => { ) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) expect(input).toBeInTheDocument() expect(input).toHaveAttribute('accept', ACCEPTED_SUBMISSION_FILE_TYPES) @@ -195,7 +195,7 @@ describe('Documents', () => { } ) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) await userEvent.upload(input, [TEST_DOC_FILE]) await userEvent.upload(input, [TEST_PDF_FILE]) @@ -231,7 +231,7 @@ describe('Documents', () => { } ) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) await userEvent.upload(input, [TEST_XLS_FILE]) @@ -281,7 +281,7 @@ describe('Documents', () => { } ) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) await userEvent.upload(input, [TEST_DOC_FILE]) await userEvent.upload(input, [TEST_PDF_FILE]) @@ -328,7 +328,7 @@ describe('Documents', () => { ) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) await userEvent.upload(input, [TEST_PDF_FILE]) await userEvent.upload(input, [TEST_DOC_FILE]) @@ -393,7 +393,7 @@ describe('Documents', () => { ) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) await userEvent.upload(input, [TEST_DOC_FILE]) @@ -449,7 +449,7 @@ describe('Documents', () => { name: 'Continue', }) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) await userEvent.upload(input, [TEST_DOC_FILE]) @@ -481,7 +481,7 @@ describe('Documents', () => { name: 'Continue', }) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) const targetEl = screen.getByTestId('file-input-droptarget') @@ -514,7 +514,7 @@ describe('Documents', () => { } ) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) const saveAsDraftButton = screen.getByRole('button', { name: 'Save as draft', @@ -597,7 +597,7 @@ describe('Documents', () => { }) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) const targetEl = screen.getByTestId('file-input-droptarget') @@ -687,7 +687,7 @@ describe('Documents', () => { name: 'Save as draft', }) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) await userEvent.upload(input, [TEST_DOC_FILE]) @@ -719,7 +719,7 @@ describe('Documents', () => { name: 'Save as draft', }) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) const targetEl = screen.getByTestId('file-input-droptarget') @@ -778,7 +778,7 @@ describe('Documents', () => { } ) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) const saveAsDraftButton = screen.getByRole('button', { name: 'Save as draft', @@ -831,7 +831,7 @@ describe('Documents', () => { name: 'Back', }) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) await userEvent.upload(input, [TEST_DOC_FILE]) @@ -863,7 +863,7 @@ describe('Documents', () => { name: 'Back', }) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) const targetEl = screen.getByTestId('file-input-droptarget') @@ -923,7 +923,7 @@ describe('Documents', () => { } ) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) const backButton = screen.getByRole('button', { name: 'Back', @@ -1005,7 +1005,7 @@ describe('Documents', () => { ) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) await userEvent.upload(input, [TEST_DOC_FILE]) @@ -1057,7 +1057,7 @@ describe('Documents', () => { ) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) await userEvent.upload(input, [TEST_DOC_FILE]) @@ -1175,7 +1175,7 @@ describe('Documents', () => { name: 'Continue', }) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) expect(input).toBeInTheDocument() @@ -1238,7 +1238,7 @@ describe('Documents', () => { name: 'Continue', }) const input = screen.getByLabelText( - 'Upload any additional supporting documents' + 'Upload contract-supporting documents' ) expect(input).toBeInTheDocument() await userEvent.upload(input, [TEST_DOC_FILE]) diff --git a/services/app-web/src/pages/StateSubmission/RateDetails/RateDetails.test.tsx b/services/app-web/src/pages/StateSubmission/RateDetails/RateDetails.test.tsx index 8650e8a52e..40e343eb0f 100644 --- a/services/app-web/src/pages/StateSubmission/RateDetails/RateDetails.test.tsx +++ b/services/app-web/src/pages/StateSubmission/RateDetails/RateDetails.test.tsx @@ -78,7 +78,7 @@ describe('RateDetails', () => { screen.getByText('Rate certification type') ).toBeInTheDocument() expect( - screen.getByText('Upload rate certification') + screen.getByText('Upload one rate certification document') ).toBeInTheDocument() expect( screen.getByRole('button', { name: 'Continue' }) @@ -275,7 +275,9 @@ describe('RateDetails', () => { 'Certification of capitation rates specific to each rate cell' ) .click() - const input = screen.getByLabelText('Upload rate certification') + const input = screen.getByLabelText( + 'Upload one rate certification document' + ) await userEvent.upload(input, [TEST_XLS_FILE]) const hasSharedRateFieldset = screen .getByText( @@ -452,7 +454,9 @@ describe('RateDetails', () => { } ) - const input = screen.getByLabelText('Upload rate certification') + const input = screen.getByLabelText( + 'Upload one rate certification document' + ) expect(input).toBeInTheDocument() await userEvent.upload(input, [TEST_DOC_FILE]) @@ -475,7 +479,9 @@ describe('RateDetails', () => { } ) - const input = screen.getByLabelText('Upload rate certification') + const input = screen.getByLabelText( + 'Upload one rate certification document' + ) expect(input).toBeInTheDocument() expect(input).toHaveAttribute( 'accept', @@ -580,7 +586,7 @@ describe('RateDetails', () => { const newRateCert = lastRateCertificationFromList(screen) expect(newRateCert).toBeDefined() const newRateInput = within(newRateCert!).getByLabelText( - 'Upload rate certification' + 'Upload one rate certification document' ) expect(newRateInput).toBeInTheDocument() @@ -1184,7 +1190,9 @@ describe('RateDetails', () => { const continueButton = screen.getByRole('button', { name: 'Continue', }) - const input = screen.getByLabelText('Upload rate certification') + const input = screen.getByLabelText( + 'Upload one rate certification document' + ) await userEvent.upload(input, [TEST_DOC_FILE]) @@ -1210,7 +1218,9 @@ describe('RateDetails', () => { const continueButton = screen.getByRole('button', { name: 'Continue', }) - const input = screen.getByLabelText('Upload rate certification') + const input = screen.getByLabelText( + 'Upload one rate certification document' + ) const targetEl = screen.getByTestId('file-input-droptarget') await userEvent.upload(input, [TEST_DOC_FILE]) @@ -1268,7 +1278,9 @@ describe('RateDetails', () => { } ) - const input = screen.getByLabelText('Upload rate certification') + const input = screen.getByLabelText( + 'Upload one rate certification document' + ) const continueButton = screen.getByRole('button', { name: 'Continue', }) @@ -1396,7 +1408,9 @@ describe('RateDetails', () => { const saveAsDraftButton = screen.getByRole('button', { name: 'Save as draft', }) - const input = screen.getByLabelText('Upload rate certification') + const input = screen.getByLabelText( + 'Upload one rate certification document' + ) await userEvent.upload(input, [TEST_DOC_FILE]) @@ -1423,7 +1437,9 @@ describe('RateDetails', () => { const saveAsDraftButton = screen.getByRole('button', { name: 'Save as draft', }) - const input = screen.getByLabelText('Upload rate certification') + const input = screen.getByLabelText( + 'Upload one rate certification document' + ) const targetEl = screen.getByTestId('file-input-droptarget') await userEvent.upload(input, [TEST_DOC_FILE]) @@ -1517,7 +1533,9 @@ describe('RateDetails', () => { }, } ) - const input = screen.getByLabelText('Upload rate certification') + const input = screen.getByLabelText( + 'Upload one rate certification document' + ) const saveAsDraftButton = screen.getByRole('button', { name: 'Save as draft', }) @@ -1561,7 +1579,9 @@ describe('RateDetails', () => { const backButton = screen.getByRole('button', { name: 'Back', }) - const input = screen.getByLabelText('Upload rate certification') + const input = screen.getByLabelText( + 'Upload one rate certification document' + ) await userEvent.upload(input, [TEST_DOC_FILE]) @@ -1587,7 +1607,9 @@ describe('RateDetails', () => { const backButton = screen.getByRole('button', { name: 'Back', }) - const input = screen.getByLabelText('Upload rate certification') + const input = screen.getByLabelText( + 'Upload one rate certification document' + ) const targetEl = screen.getByTestId('file-input-droptarget') await userEvent.upload(input, [TEST_DOC_FILE]) @@ -1649,7 +1671,7 @@ describe('RateDetails', () => { ) const rateCertInput = screen.getByLabelText( - 'Upload rate certification' + 'Upload one rate certification document' ) const supportingDocsInput = screen.getByLabelText( 'Upload supporting documents (optional)' @@ -1726,7 +1748,7 @@ const fillOutIndexRate = async (screen: Screen, index: number) => { // assert proper initial fields are present expect( - withinTargetRateCert.getByText('Upload rate certification') + withinTargetRateCert.getByText('Upload one rate certification document') ).toBeInTheDocument() expect( withinTargetRateCert.getByText( @@ -1754,7 +1776,7 @@ const fillOutIndexRate = async (screen: Screen, index: number) => { // add 1 doc const input = withinTargetRateCert.getByLabelText( - 'Upload rate certification' + 'Upload one rate certification document' ) await userEvent.upload(input, [TEST_DOC_FILE]) diff --git a/services/app-web/src/pages/StateSubmission/RateDetails/SingleRateCert/SingleRateCert.tsx b/services/app-web/src/pages/StateSubmission/RateDetails/SingleRateCert/SingleRateCert.tsx index f532410af9..6c06c9d969 100644 --- a/services/app-web/src/pages/StateSubmission/RateDetails/SingleRateCert/SingleRateCert.tsx +++ b/services/app-web/src/pages/StateSubmission/RateDetails/SingleRateCert/SingleRateCert.tsx @@ -146,12 +146,12 @@ export const SingleRateCert = ({ data-testid={`rate-certification-form`} key={key} id={`${fieldNamePrefix}.container.${rateInfo.id}`} + className={styles.rateCertContainer} legend={ displayAsStandaloneRate ? `Rate certification` : `Rate certification ${rateCertNumber}` } - className={styles.rateCertContainer} > { await waitFor(() => { expect( - screen.getByText( - 'Upload any additional supporting documents' - ) + screen.getByText('Upload contract-supporting documents') ).toBeInTheDocument() expect(screen.getByTestId('file-input')).toBeInTheDocument() })