diff --git a/src/applications/vaos/new-appointment/components/ReviewPage/ReviewRequestInfo/ReviewDirectScheduleInfo/Description.jsx b/src/applications/vaos/new-appointment/components/ReviewPage/ReviewRequestInfo/ReviewDirectScheduleInfo/Description.jsx deleted file mode 100644 index e52d34d098b3..000000000000 --- a/src/applications/vaos/new-appointment/components/ReviewPage/ReviewRequestInfo/ReviewDirectScheduleInfo/Description.jsx +++ /dev/null @@ -1,42 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import { getTypeOfCare } from '../../../../redux/selectors'; -import { FLOW_TYPES, FACILITY_TYPES } from '../../../../../utils/constants'; -import { lowerCase } from '../../../../../utils/formatters'; - -export default function Description({ data, flowType }) { - const typeOfCare = lowerCase(getTypeOfCare(data)?.name); - const description = - data.facilityType === FACILITY_TYPES.COMMUNITY_CARE - ? 'community care' - : typeOfCare; - const isDirectSchedule = flowType === FLOW_TYPES.DIRECT; - const isVowel = - (typeOfCare === 'amputation care' || - typeOfCare === 'audiology and speech' || - typeOfCare === 'optometry' || - typeOfCare === 'ophthalmology') && - description !== 'community care'; - return ( - <> - {isDirectSchedule && ( - <> -

- You're scheduling {isVowel ? 'an' : 'a'} {description} appointment -

-

- Make sure the information is correct. Then confirm your appointment. - If you need to update any details, click Edit to go back to the - screen where you entered the information. After you update your - information, you'll need to go through the tool again to schedule - your appointment. -

- - )} - - ); -} -Description.propTypes = { - data: PropTypes.object, - flowType: PropTypes.string, -}; diff --git a/src/applications/vaos/new-appointment/components/ReviewPage/ReviewRequestInfo/ReviewDirectScheduleInfo/ReviewDirectScheduleInfo.jsx b/src/applications/vaos/new-appointment/components/ReviewPage/ReviewRequestInfo/ReviewDirectScheduleInfo/ReviewDirectScheduleInfo.jsx index 2c82f028474c..7f9d07b2a4ee 100644 --- a/src/applications/vaos/new-appointment/components/ReviewPage/ReviewRequestInfo/ReviewDirectScheduleInfo/ReviewDirectScheduleInfo.jsx +++ b/src/applications/vaos/new-appointment/components/ReviewPage/ReviewRequestInfo/ReviewDirectScheduleInfo/ReviewDirectScheduleInfo.jsx @@ -1,10 +1,8 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { FLOW_TYPES } from '../../../../../utils/constants'; import ReasonForAppointmentSection from '../ReasonForAppointmentSection'; import ContactDetailSection from '../ContactDetailSection'; import AppointmentDate from '../../AppointmentDate'; -import Description from './Description'; import TypeOfAppointmentSection from '../TypeOfAppointmentSection'; import State from '../../../../../components/State'; @@ -17,7 +15,6 @@ export default function ReviewDirectScheduleInfo({ return (

{pageTitle}

-

{pageTitle}

- {isCommunityCare && ( diff --git a/src/applications/vaos/tests/e2e/workflows/direct-schedule-workflow/ophthalmology.cypress.spec.js b/src/applications/vaos/tests/e2e/workflows/direct-schedule-workflow/ophthalmology.cypress.spec.js index 9541fd51f28f..efb25332d12e 100644 --- a/src/applications/vaos/tests/e2e/workflows/direct-schedule-workflow/ophthalmology.cypress.spec.js +++ b/src/applications/vaos/tests/e2e/workflows/direct-schedule-workflow/ophthalmology.cypress.spec.js @@ -145,10 +145,7 @@ describe('VAOS request schedule flow - Audiology', () => { .assertHeading({ name: /Review and confirm your appointment details/i, }) - .assertHeading({ - level: 2, - name: /You.re scheduling an ophthalmology appointment/i, - }) + .assertText({ text: /ophthalmology/i }) .clickConfirmButton(); ConfirmationPageObject.assertUrl().assertText({ diff --git a/src/applications/vaos/tests/e2e/workflows/direct-schedule-workflow/primary-care.cypress.spec.js b/src/applications/vaos/tests/e2e/workflows/direct-schedule-workflow/primary-care.cypress.spec.js index c1e41de67dcc..d205052fe2cf 100644 --- a/src/applications/vaos/tests/e2e/workflows/direct-schedule-workflow/primary-care.cypress.spec.js +++ b/src/applications/vaos/tests/e2e/workflows/direct-schedule-workflow/primary-care.cypress.spec.js @@ -139,10 +139,7 @@ describe('VAOS direct schedule flow - Primary care', () => { .assertHeading({ name: /Review and confirm your appointment details/i, }) - .assertHeading({ - level: 2, - name: /You.re scheduling a primary care appointment/i, - }) + .assertText({ text: /primary care/i }) .clickConfirmButton(); ConfirmationPageObject.assertUrl().assertText({ @@ -211,10 +208,7 @@ describe('VAOS direct schedule flow - Primary care', () => { .assertHeading({ name: /Review and confirm your appointment details/i, }) - .assertHeading({ - level: 2, - name: /You.re scheduling a primary care appointment/i, - }) + .assertText({ text: /primary care/i }) .clickConfirmButton(); ConfirmationPageObject.assertUrl().assertText({ @@ -293,10 +287,7 @@ describe('VAOS direct schedule flow - Primary care', () => { .assertHeading({ name: /Review and confirm your appointment details/i, }) - .assertHeading({ - level: 2, - name: /You.re scheduling a primary care appointment/i, - }) + .assertText({ text: /primary care/i }) .clickConfirmButton(); ConfirmationPageObject.assertUrl().assertText({ @@ -483,10 +474,7 @@ describe('VAOS direct schedule flow - Primary care', () => { .assertHeading({ name: /Review and confirm your appointment details/i, }) - .assertHeading({ - level: 2, - name: /You.re scheduling a primary care appointment/i, - }) + .assertText({ text: /primary care/i }) .clickConfirmButton(); ConfirmationPageObject.assertUrl().assertText({ @@ -550,10 +538,7 @@ describe('VAOS direct schedule flow - Primary care', () => { .assertHeading({ name: /Review and confirm your appointment details/i, }) - .assertHeading({ - level: 2, - name: /You.re scheduling a primary care appointment/i, - }) + .assertText({ text: /primary care/i }) .clickConfirmButton(); ConfirmationPageObject.assertUrl().assertText({ @@ -713,10 +698,7 @@ describe('VAOS direct schedule flow - Primary care', () => { .assertHeading({ name: /Review and confirm your appointment details/i, }) - .assertHeading({ - level: 2, - name: /You.re scheduling a primary care appointment/i, - }) + .assertText({ text: /primary care/i }) .clickConfirmButton(); ConfirmationPageObject.assertUrl().assertText({