Skip to content

Commit

Permalink
convenience changes and test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rhasselle-oddball committed Oct 3, 2024
1 parent 5d99ef8 commit 51c5187
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
1 change: 1 addition & 0 deletions src/applications/simple-forms/21-10210/config/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const formConfig = {
trackingPrefix: 'lay-witness-10210-',
dev: {
showNavLinks: true,
collapsibleNavLinks: true,
},
hideUnauthedStartLink: true,
introduction: IntroductionPage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ export const IntroductionPage = ({ route }) => {
content={content}
ombInfo={ombInfo}
childContent={childContent}
devOnly={{
forceShowFormControls: true,
}}
/>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import manifest from '../../manifest.json';
import featureToggles from '../../../shared/tests/e2e/fixtures/mocks/feature-toggles.json';
import { getSignerFullName } from './helpers';
import mockSubmit from '../../../shared/tests/e2e/fixtures/mocks/application-submit.json';
import user from './fixtures/mocks/user.json';
import {
getPagePaths,
fillAddressWebComponentPattern,
Expand All @@ -26,8 +27,7 @@ const testConfig = createTestConfig(
pageHooks: {
introduction: ({ afterHook }) => {
afterHook(() => {
cy.get('va-button[text*="start"]');
cy.findByText(/without signing in/i).click({ force: true });
cy.get('a.vads-c-action-link--green').click();
});
},
'witness-personal-information-a': ({ afterHook }) => {
Expand Down Expand Up @@ -118,6 +118,8 @@ const testConfig = createTestConfig(

setupPerTest: () => {
cy.intercept('GET', '/v0/feature_toggles?*', featureToggles);
cy.intercept('/v0/user', user);
cy.login(user);
cy.intercept('POST', formConfig.submitUrl, mockSubmit);
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,10 @@
"in_progress_forms": [
{
"form": "21-10210",
"metadata": {
"savedAt": 1681760746439,
"submission": {
"status": false,
"errorMessage": false,
"id": false,
"timestamp": 1681760746426,
"hasAttemptedSubmit": true
},
"expiresAt": 1686944746,
"lastUpdated": 1681760746,
"inProgressFormId": 19439
},
"lastUpdated": 1681760746
"metadata": {}
}
],
"prefills_available": [],
"prefills_available": ["21-10210"],
"services": [
"hca",
"edu-benefits",
Expand Down

0 comments on commit 51c5187

Please sign in to comment.