diff --git a/src/applications/representative-appoint/config/form.js b/src/applications/representative-appoint/config/form.js
index 21e90a798f34..521e9d77be08 100644
--- a/src/applications/representative-appoint/config/form.js
+++ b/src/applications/representative-appoint/config/form.js
@@ -26,7 +26,6 @@ import {
claimantContactMailing,
veteranPersonalInformation,
veteranContactPhoneEmail,
- // veteranContactPhoneEmailForNonVeteran,
veteranContactMailing,
veteranContactMailingClaimant,
veteranIdentification,
@@ -207,22 +206,6 @@ const formConfig = {
uiSchema: claimantContactPhoneEmail.uiSchema,
schema: claimantContactPhoneEmail.schema,
},
- // ...profileContactInfo({
- // contactInfoPageKey: 'confirmContactInfo',
- // contactPath: 'claimant-contact',
- // contactInfoRequiredKeys: [
- // 'mailingAddress',
- // 'email',
- // 'homePhone',
- // 'mobilePhone',
- // ],
- // included: ['homePhone', 'mobilePhone', 'mailingAddress', 'email'],
- // depends: formData => {
- // const isLoggedIn = formData?.['view:isLoggedIn'] ?? false;
- // const isNotVeteran = !preparerIsVeteran({ formData });
- // return isLoggedIn && isNotVeteran;
- // },
- // }),
veteranPersonalInformation: {
title: `Your name and date of birth`,
@@ -245,13 +228,6 @@ const formConfig = {
uiSchema: veteranContactPhoneEmail.uiSchema,
schema: veteranContactPhoneEmail.schema,
},
- // veteranContactPhoneEmailForNonVeteran: {
- // path: 'veteran-contact-phone-email-for-non-veteran',
- // title: `Veteran’s phone number and email address`,
- // depends: formData => !preparerIsVeteran({ formData }),
- // uiSchema: veteranContactPhoneEmailForNonVeteran.uiSchema,
- // schema: veteranContactPhoneEmailForNonVeteran.schema,
- // },
veteranIdentification: {
path: 'veteran-identification',
title: `Your identification information`,
diff --git a/src/applications/representative-appoint/containers/IntroductionPage.jsx b/src/applications/representative-appoint/containers/IntroductionPage.jsx
index 3e1f1b3e4cf3..170dcb62c768 100644
--- a/src/applications/representative-appoint/containers/IntroductionPage.jsx
+++ b/src/applications/representative-appoint/containers/IntroductionPage.jsx
@@ -169,4 +169,7 @@ function mapStateToProps(state) {
};
}
+// named export for testing
+export { IntroductionPage };
+
export default connect(mapStateToProps)(IntroductionPage);
diff --git a/src/applications/representative-appoint/pages/index.js b/src/applications/representative-appoint/pages/index.js
index 718d3ecebdf9..941b2d1ba458 100644
--- a/src/applications/representative-appoint/pages/index.js
+++ b/src/applications/representative-appoint/pages/index.js
@@ -11,7 +11,6 @@ import * as claimantPersonalInformation from './claimant/claimantPersonalInforma
import * as claimantContactMailing from './claimant/claimantContactMailing';
import * as veteranPersonalInformation from './veteran/veteranPersonalInformation';
import * as veteranContactPhoneEmail from './veteran/veteranContactPhoneEmail';
-import * as veteranContactPhoneEmailForNonVeteran from './veteran/veteranContactPhoneEmailForNonVeteran';
import * as veteranContactMailing from './veteran/veteranContactMailing';
import * as veteranContactMailingClaimant from './veteran/veteranContactMailingClaimant';
import * as veteranIdentification from './veteran/veteranIdentification';
@@ -35,7 +34,6 @@ export {
claimantContactMailing,
veteranPersonalInformation,
veteranContactPhoneEmail,
- veteranContactPhoneEmailForNonVeteran,
veteranContactMailing,
veteranContactMailingClaimant,
veteranIdentification,
diff --git a/src/applications/representative-appoint/pages/veteran/veteranContactPhoneEmailForNonVeteran.js b/src/applications/representative-appoint/pages/veteran/veteranContactPhoneEmailForNonVeteran.js
deleted file mode 100644
index 7bef2a5cfac2..000000000000
--- a/src/applications/representative-appoint/pages/veteran/veteranContactPhoneEmailForNonVeteran.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import React from 'react';
-
-import {
- phoneUI,
- phoneSchema,
- emailUI,
- emailSchema,
- titleUI,
- titleSchema,
-} from 'platform/forms-system/src/js/web-component-patterns';
-import ProfileNotUpdatedNote from '../../components/ProfileNotUpdatedNote';
-
-export const uiSchema = {
- ...titleUI(() => 'Veteran’s phone number and email address'),
- profileNotUpdatedNote: {
- 'ui:description': formData => (
-
- ),
- },
- 'Primary phone': phoneUI({
- required: false,
- }),
- veteranEmail: emailUI(),
-};
-
-export const schema = {
- type: 'object',
- required: [],
- properties: {
- titleSchema,
- profileNotUpdatedNote: { type: 'object', properties: {} },
-
- 'Primary phone': phoneSchema,
- veteranEmail: emailSchema,
- },
-};
diff --git a/src/applications/representative-appoint/tests/containers/IntroductionPage.unit.spec.jsx b/src/applications/representative-appoint/tests/containers/IntroductionPage.unit.spec.jsx
new file mode 100644
index 000000000000..8aa0aa95bd94
--- /dev/null
+++ b/src/applications/representative-appoint/tests/containers/IntroductionPage.unit.spec.jsx
@@ -0,0 +1,90 @@
+import React from 'react';
+import { Provider } from 'react-redux';
+import { render } from '@testing-library/react';
+import { expect } from 'chai';
+
+import { $, $$ } from 'platform/forms-system/src/js/utilities/ui';
+
+import IntroductionPage from '../../containers/IntroductionPage';
+import formConfig from '../../config/form';
+
+const getData = ({
+ loggedIn = true,
+ isVerified = true,
+ data = {},
+ contestedIssues = {},
+} = {}) => ({
+ props: {
+ loggedIn,
+ location: {
+ basename: '/sc-base-url',
+ },
+ route: {
+ formConfig,
+ pageList: [{ path: '/introduction' }, { path: '/next', formConfig }],
+ },
+ },
+ mockStore: {
+ getState: () => ({
+ user: {
+ login: {
+ currentlyLoggedIn: loggedIn,
+ },
+ profile: {
+ userFullName: { last: 'last' },
+ dob: '2000-01-01',
+ claims: { appeals: true },
+ savedForms: [],
+ prefillsAvailable: [],
+ verified: isVerified,
+ },
+ },
+ form: {
+ formId: formConfig.formId,
+ loadedStatus: 'success',
+ savedStatus: '',
+ loadedData: {
+ metadata: {},
+ },
+ data,
+ contestedIssues,
+ },
+ scheduledDowntime: {
+ globalDowntime: null,
+ isReady: true,
+ isPending: false,
+ serviceMap: { get() {} },
+ dismissedDowntimeWarnings: [],
+ },
+ }),
+ subscribe: () => {},
+ dispatch: () => {},
+ },
+});
+
+describe('IntroductionPage', () => {
+ it('should render', () => {
+ const { props, mockStore } = getData({ loggedIn: false });
+ const { container } = render(
+
+
+ ,
+ );
+ expect($('h1', container).textContent).to.eq(
+ 'Get help from a VA accredited representative or VSO',
+ );
+ expect($('va-process-list', container)).to.exist;
+ expect($('va-omb-info', container)).to.exist;
+ expect($('va-alert[status="info"]', container)).to.exist;
+ });
+
+ it('should render start action links', () => {
+ const { props, mockStore } = getData();
+ const { container } = render(
+
+
+ ,
+ );
+ expect($$('.vads-c-action-link--green', container).length).to.equal(2);
+ });
+});
diff --git a/src/applications/representative-appoint/tests/containers/NextStepsPage.unit.spec.jsx b/src/applications/representative-appoint/tests/containers/NextStepsPage.unit.spec.jsx
new file mode 100644
index 000000000000..c48ffce44eb9
--- /dev/null
+++ b/src/applications/representative-appoint/tests/containers/NextStepsPage.unit.spec.jsx
@@ -0,0 +1,31 @@
+import React from 'react';
+import { render } from '@testing-library/react';
+import { Provider } from 'react-redux';
+import { expect } from 'chai';
+import configureMockStore from 'redux-mock-store';
+import { $ } from 'platform/forms-system/src/js/utilities/ui';
+import NextStepsPage from '../../containers/NextStepsPage';
+import mockFormData from '../fixtures/data/21-22a/form-data.json';
+
+describe('', () => {
+ const mockStore = configureMockStore();
+
+ it('renders the component with mocked Redux store', () => {
+ const store = mockStore({
+ form: {
+ data: mockFormData,
+ },
+ });
+
+ const { container } = render(
+
+
+ ,
+ );
+
+ expect($('h1', container).textContent).to.eq(
+ 'Get help from a VA accredited representative or VSO',
+ );
+ expect($('h2', container).textContent).to.eq('Your next steps');
+ });
+});
diff --git a/src/applications/representative-appoint/tests/pages/authorizations/authorizeAddress.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/authorizations/authorizeAddress.unit.spec.jsx
new file mode 100644
index 000000000000..e2da143d971d
--- /dev/null
+++ b/src/applications/representative-appoint/tests/pages/authorizations/authorizeAddress.unit.spec.jsx
@@ -0,0 +1,29 @@
+import React from 'react';
+import { expect } from 'chai';
+import { render } from '@testing-library/react';
+
+import { DefinitionTester } from 'platform/testing/unit/schemaform-utils';
+import { $ } from 'platform/forms-system/src/js/utilities/ui';
+import mockFormData from '../../fixtures/data/form-data.json';
+import formConfig from '../../../config/form';
+
+describe('Authorize address page', () => {
+ const {
+ schema,
+ uiSchema,
+ } = formConfig.chapters.authorization.pages.authorizeAddress;
+
+ it('should render', () => {
+ const { container } = render(
+ ,
+ );
+
+ expect($('button[type="submit"]', container)).to.exist;
+ });
+});
diff --git a/src/applications/representative-appoint/tests/pages/authorizations/authorizeInsideVA.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/authorizations/authorizeInsideVA.unit.spec.jsx
new file mode 100644
index 000000000000..1ebd5657cbac
--- /dev/null
+++ b/src/applications/representative-appoint/tests/pages/authorizations/authorizeInsideVA.unit.spec.jsx
@@ -0,0 +1,29 @@
+import React from 'react';
+import { expect } from 'chai';
+import { render } from '@testing-library/react';
+
+import { DefinitionTester } from 'platform/testing/unit/schemaform-utils';
+import { $ } from 'platform/forms-system/src/js/utilities/ui';
+
+import formConfig from '../../../config/form';
+
+describe('Authorize Inside VA page', () => {
+ const {
+ schema,
+ uiSchema,
+ } = formConfig.chapters.authorization.pages.authorizeInsideVA;
+
+ it('should render', () => {
+ const { container } = render(
+ ,
+ );
+
+ expect($('button[type="submit"]', container)).to.exist;
+ });
+});
diff --git a/src/applications/representative-appoint/tests/pages/authorizations/authorizeMedical.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/authorizations/authorizeMedical.unit.spec.jsx
new file mode 100644
index 000000000000..86bf65bbb994
--- /dev/null
+++ b/src/applications/representative-appoint/tests/pages/authorizations/authorizeMedical.unit.spec.jsx
@@ -0,0 +1,29 @@
+import React from 'react';
+import { expect } from 'chai';
+import { render } from '@testing-library/react';
+
+import { DefinitionTester } from 'platform/testing/unit/schemaform-utils';
+import { $ } from 'platform/forms-system/src/js/utilities/ui';
+
+import formConfig from '../../../config/form';
+
+describe('Authorize medical page', () => {
+ const {
+ schema,
+ uiSchema,
+ } = formConfig.chapters.authorization.pages.authorizeMedical;
+
+ it('should render', () => {
+ const { container } = render(
+ ,
+ );
+
+ expect($('button[type="submit"]', container)).to.exist;
+ });
+});
diff --git a/src/applications/representative-appoint/tests/pages/authorizations/authorizeMedicalSelect.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/authorizations/authorizeMedicalSelect.unit.spec.jsx
new file mode 100644
index 000000000000..292f64b105d0
--- /dev/null
+++ b/src/applications/representative-appoint/tests/pages/authorizations/authorizeMedicalSelect.unit.spec.jsx
@@ -0,0 +1,29 @@
+import React from 'react';
+import { expect } from 'chai';
+import { render } from '@testing-library/react';
+
+import { DefinitionTester } from 'platform/testing/unit/schemaform-utils';
+import { $ } from 'platform/forms-system/src/js/utilities/ui';
+
+import formConfig from '../../../config/form';
+
+describe('Authorize medical select page', () => {
+ const {
+ schema,
+ uiSchema,
+ } = formConfig.chapters.authorization.pages.authorizeMedicalSelect;
+
+ it('should render', () => {
+ const { container } = render(
+ ,
+ );
+
+ expect($('button[type="submit"]', container)).to.exist;
+ });
+});
diff --git a/src/applications/representative-appoint/tests/pages/authorizations/authorizeOutsideVA.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/authorizations/authorizeOutsideVA.unit.spec.jsx
new file mode 100644
index 000000000000..de6e7c6f56de
--- /dev/null
+++ b/src/applications/representative-appoint/tests/pages/authorizations/authorizeOutsideVA.unit.spec.jsx
@@ -0,0 +1,29 @@
+import React from 'react';
+import { expect } from 'chai';
+import { render } from '@testing-library/react';
+
+import { DefinitionTester } from 'platform/testing/unit/schemaform-utils';
+import { $ } from 'platform/forms-system/src/js/utilities/ui';
+
+import formConfig from '../../../config/form';
+
+describe('Authorize Outside VA page', () => {
+ const {
+ schema,
+ uiSchema,
+ } = formConfig.chapters.authorization.pages.authorizeOutsideVA;
+
+ it('should render', () => {
+ const { container } = render(
+ ,
+ );
+
+ expect($('button[type="submit"]', container)).to.exist;
+ });
+});
diff --git a/src/applications/representative-appoint/tests/pages/authorizations/authorizeOutsideVANames.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/authorizations/authorizeOutsideVANames.unit.spec.jsx
new file mode 100644
index 000000000000..a1e7e05612dd
--- /dev/null
+++ b/src/applications/representative-appoint/tests/pages/authorizations/authorizeOutsideVANames.unit.spec.jsx
@@ -0,0 +1,29 @@
+import React from 'react';
+import { expect } from 'chai';
+import { render } from '@testing-library/react';
+
+import { DefinitionTester } from 'platform/testing/unit/schemaform-utils';
+import { $ } from 'platform/forms-system/src/js/utilities/ui';
+
+import formConfig from '../../../config/form';
+
+describe('Authorize Outside VA Names page', () => {
+ const {
+ schema,
+ uiSchema,
+ } = formConfig.chapters.authorization.pages.authorizeOutsideVANames;
+
+ it('should render', () => {
+ const { container } = render(
+ ,
+ );
+
+ expect($('button[type="submit"]', container)).to.exist;
+ });
+});
diff --git a/src/applications/representative-appoint/tests/pages/claimantContactMailing.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/claimant/claimantContactMailing.unit.spec.jsx
similarity index 94%
rename from src/applications/representative-appoint/tests/pages/claimantContactMailing.unit.spec.jsx
rename to src/applications/representative-appoint/tests/pages/claimant/claimantContactMailing.unit.spec.jsx
index fde467892e17..952682873a77 100644
--- a/src/applications/representative-appoint/tests/pages/claimantContactMailing.unit.spec.jsx
+++ b/src/applications/representative-appoint/tests/pages/claimant/claimantContactMailing.unit.spec.jsx
@@ -5,7 +5,7 @@ import { render } from '@testing-library/react';
import { DefinitionTester } from 'platform/testing/unit/schemaform-utils';
import { $ } from 'platform/forms-system/src/js/utilities/ui';
-import formConfig from '../../config/form';
+import formConfig from '../../../config/form';
describe('Claimant Contact Mailing page', () => {
const {
diff --git a/src/applications/representative-appoint/tests/pages/claimantContactPhoneEmail.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/claimant/claimantContactPhoneEmail.unit.spec.jsx
similarity index 95%
rename from src/applications/representative-appoint/tests/pages/claimantContactPhoneEmail.unit.spec.jsx
rename to src/applications/representative-appoint/tests/pages/claimant/claimantContactPhoneEmail.unit.spec.jsx
index 40628d198405..c843e02ef7b1 100644
--- a/src/applications/representative-appoint/tests/pages/claimantContactPhoneEmail.unit.spec.jsx
+++ b/src/applications/representative-appoint/tests/pages/claimant/claimantContactPhoneEmail.unit.spec.jsx
@@ -5,7 +5,7 @@ import { Provider } from 'react-redux';
import configureStore from 'redux-mock-store';
import { DefinitionTester } from 'platform/testing/unit/schemaform-utils';
-import formConfig from '../../config/form';
+import formConfig from '../../../config/form';
describe('Claimant Contact Phone Email page', () => {
const {
diff --git a/src/applications/representative-appoint/tests/pages/claimantPersonalInformation.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/claimant/claimantPersonalInformation.unit.spec.jsx
similarity index 95%
rename from src/applications/representative-appoint/tests/pages/claimantPersonalInformation.unit.spec.jsx
rename to src/applications/representative-appoint/tests/pages/claimant/claimantPersonalInformation.unit.spec.jsx
index cc9985b50fec..eeb84dbde0cd 100644
--- a/src/applications/representative-appoint/tests/pages/claimantPersonalInformation.unit.spec.jsx
+++ b/src/applications/representative-appoint/tests/pages/claimant/claimantPersonalInformation.unit.spec.jsx
@@ -7,7 +7,7 @@ import configureStore from 'redux-mock-store';
import { DefinitionTester } from 'platform/testing/unit/schemaform-utils';
import { $ } from 'platform/forms-system/src/js/utilities/ui';
-import formConfig from '../../config/form';
+import formConfig from '../../../config/form';
describe('Claimant Personal Information page', () => {
const {
diff --git a/src/applications/representative-appoint/tests/pages/claimantRelationship.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/claimant/claimantRelationship.unit.spec.jsx
similarity index 94%
rename from src/applications/representative-appoint/tests/pages/claimantRelationship.unit.spec.jsx
rename to src/applications/representative-appoint/tests/pages/claimant/claimantRelationship.unit.spec.jsx
index 1b1017c36f43..85dba204d514 100644
--- a/src/applications/representative-appoint/tests/pages/claimantRelationship.unit.spec.jsx
+++ b/src/applications/representative-appoint/tests/pages/claimant/claimantRelationship.unit.spec.jsx
@@ -5,7 +5,7 @@ import { render } from '@testing-library/react';
import { DefinitionTester } from 'platform/testing/unit/schemaform-utils';
import { $ } from 'platform/forms-system/src/js/utilities/ui';
-import formConfig from '../../config/form';
+import formConfig from '../../../config/form';
describe('Claimant Relationship page', () => {
const {
diff --git a/src/applications/representative-appoint/tests/pages/claimantType.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/claimant/claimantType.unit.spec.jsx
similarity index 89%
rename from src/applications/representative-appoint/tests/pages/claimantType.unit.spec.jsx
rename to src/applications/representative-appoint/tests/pages/claimant/claimantType.unit.spec.jsx
index 8d2762468497..e871732f41c5 100644
--- a/src/applications/representative-appoint/tests/pages/claimantType.unit.spec.jsx
+++ b/src/applications/representative-appoint/tests/pages/claimant/claimantType.unit.spec.jsx
@@ -3,8 +3,8 @@ import { Provider } from 'react-redux';
import { render } from '@testing-library/react';
import { expect } from 'chai';
import sinon from 'sinon';
-import ClaimantType from '../../components/ClaimantType';
-import initialFormData from '../fixtures/data/initial-form-data.json';
+import ClaimantType from '../../../components/ClaimantType';
+import initialFormData from '../../fixtures/data/initial-form-data.json';
describe(' handlers', async () => {
const getProps = () => {
diff --git a/src/applications/representative-appoint/tests/pages/veteran/veteranContactMailing.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/veteran/veteranContactMailing.unit.spec.jsx
new file mode 100644
index 000000000000..301e92b699df
--- /dev/null
+++ b/src/applications/representative-appoint/tests/pages/veteran/veteranContactMailing.unit.spec.jsx
@@ -0,0 +1,29 @@
+import React from 'react';
+import { render } from '@testing-library/react';
+import { expect } from 'chai';
+import { DefinitionTester } from 'platform/testing/unit/schemaform-utils';
+
+import mockFormData from '../../fixtures/data/form-data.json';
+
+import formConfig from '../../../config/form';
+
+describe('Veteran Contact Mailing page', () => {
+ const {
+ schema,
+ uiSchema,
+ } = formConfig.chapters.claimantInfo.pages.veteranContactMailing;
+
+ it.skip('should render', () => {
+ const { container } = render(
+ ,
+ );
+
+ expect(container.querySelector('button[type="submit"]')).to.exist;
+ });
+});
diff --git a/src/applications/representative-appoint/tests/pages/veteran/veteranContactPhoneEmail.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/veteran/veteranContactPhoneEmail.unit.spec.jsx
new file mode 100644
index 000000000000..df8eaa2f84ab
--- /dev/null
+++ b/src/applications/representative-appoint/tests/pages/veteran/veteranContactPhoneEmail.unit.spec.jsx
@@ -0,0 +1,36 @@
+import React from 'react';
+import { expect } from 'chai';
+import { render } from '@testing-library/react';
+import { Provider } from 'react-redux';
+import configureStore from 'redux-mock-store';
+
+import { DefinitionTester } from 'platform/testing/unit/schemaform-utils';
+import formConfig from '../../../config/form';
+
+describe('Veteran Contact Phone Email page', () => {
+ const {
+ schema,
+ uiSchema,
+ } = formConfig.chapters.veteranInfo.pages.veteranContactPhoneEmail;
+
+ const mockStore = configureStore();
+ const store = mockStore({
+ user: { login: { currentlyLoggedIn: true } },
+ });
+
+ it('should render', () => {
+ const { container } = render(
+
+
+ ,
+ );
+
+ expect(container.querySelector('button[type="submit"]')).to.exist;
+ });
+});
diff --git a/src/applications/representative-appoint/tests/pages/veteran/veteranIdentification.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/veteran/veteranIdentification.unit.spec.jsx
new file mode 100644
index 000000000000..4b76186b3051
--- /dev/null
+++ b/src/applications/representative-appoint/tests/pages/veteran/veteranIdentification.unit.spec.jsx
@@ -0,0 +1,36 @@
+import React from 'react';
+import { expect } from 'chai';
+import { render } from '@testing-library/react';
+import { Provider } from 'react-redux';
+import configureStore from 'redux-mock-store';
+
+import { DefinitionTester } from 'platform/testing/unit/schemaform-utils';
+import formConfig from '../../../config/form';
+
+describe('Veteran Identification page', () => {
+ const {
+ schema,
+ uiSchema,
+ } = formConfig.chapters.veteranInfo.pages.veteranIdentification;
+
+ const mockStore = configureStore();
+ const store = mockStore({
+ user: { login: { currentlyLoggedIn: true } },
+ });
+
+ it('should render', () => {
+ const { container } = render(
+
+
+ ,
+ );
+
+ expect(container.querySelector('button[type="submit"]')).to.exist;
+ });
+});
diff --git a/src/applications/representative-appoint/tests/pages/veteran/veteranPersonalInformation.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/veteran/veteranPersonalInformation.unit.spec.jsx
new file mode 100644
index 000000000000..91f5b0adc99e
--- /dev/null
+++ b/src/applications/representative-appoint/tests/pages/veteran/veteranPersonalInformation.unit.spec.jsx
@@ -0,0 +1,36 @@
+import React from 'react';
+import { expect } from 'chai';
+import { render } from '@testing-library/react';
+import { Provider } from 'react-redux';
+import configureStore from 'redux-mock-store';
+
+import { DefinitionTester } from 'platform/testing/unit/schemaform-utils';
+import formConfig from '../../../config/form';
+
+describe('Veteran Personal Information page', () => {
+ const {
+ schema,
+ uiSchema,
+ } = formConfig.chapters.veteranInfo.pages.veteranPersonalInformation;
+
+ const mockStore = configureStore();
+ const store = mockStore({
+ user: { login: { currentlyLoggedIn: true } },
+ });
+
+ it('should render', () => {
+ const { container } = render(
+
+
+ ,
+ );
+
+ expect(container.querySelector('button[type="submit"]')).to.exist;
+ });
+});
diff --git a/src/applications/representative-appoint/tests/pages/veteran/veteranServiceInformation.unit.spec.jsx b/src/applications/representative-appoint/tests/pages/veteran/veteranServiceInformation.unit.spec.jsx
new file mode 100644
index 000000000000..f13afe37281e
--- /dev/null
+++ b/src/applications/representative-appoint/tests/pages/veteran/veteranServiceInformation.unit.spec.jsx
@@ -0,0 +1,36 @@
+import React from 'react';
+import { expect } from 'chai';
+import { render } from '@testing-library/react';
+import { Provider } from 'react-redux';
+import configureStore from 'redux-mock-store';
+
+import { DefinitionTester } from 'platform/testing/unit/schemaform-utils';
+import formConfig from '../../../config/form';
+
+describe('Veteran Service Information page', () => {
+ const {
+ schema,
+ uiSchema,
+ } = formConfig.chapters.veteranInfo.pages.veteranServiceInformation;
+
+ const mockStore = configureStore();
+ const store = mockStore({
+ user: { login: { currentlyLoggedIn: true } },
+ });
+
+ it('should render', () => {
+ const { container } = render(
+
+
+ ,
+ );
+
+ expect(container.querySelector('button[type="submit"]')).to.exist;
+ });
+});