Skip to content

Commit

Permalink
Merge pull request #13941 from transcom/B-20599-Customer-Portal-Butto…
Browse files Browse the repository at this point in the history
…n-INT

B 20599 customer portal button int
  • Loading branch information
KonstanceH authored Oct 22, 2024
2 parents b4ebb72 + fd68def commit e85ea79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion playwright/tests/my/mymove/orders.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ test.describe('Download Amended Orders', () => {
await customerPage.waitForPage.home();

// Go to the Upload Amended Documents page
await page.getByRole('button', { name: 'Upload documents' }).click();
await page.getByRole('button', { name: 'Upload/Manage Orders Documentation' }).click();

// Upload amended orders
const filepondContainer = page.locator('.filepond--wrapper');
Expand Down
6 changes: 4 additions & 2 deletions src/pages/MyMove/Home/MoveHome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,9 @@ const MoveHome = ({ serviceMemberMoves, isProfileComplete, serviceMember, signed
headerText="Profile complete"
step="1"
onEditBtnClick={() => handleNewPathClick(profileEditPath)}
actionBtnLabel={isAdditionalDocumentsButtonAvailable() ? 'Upload Additional Documents' : null}
actionBtnLabel={
isAdditionalDocumentsButtonAvailable() ? 'Upload/Manage Non-Orders Documentation' : null
}
onActionBtnClick={() => additionalDocumentsClick()}
>
<Description>Make sure to keep your personal information up to date during your move.</Description>
Expand All @@ -542,7 +544,7 @@ const MoveHome = ({ serviceMemberMoves, isProfileComplete, serviceMember, signed
<Step
complete={hasOrdersAndUpload() && hasSubmittedMove()}
completedHeaderText="Orders"
editBtnLabel="Upload documents"
editBtnLabel="Upload/Manage Orders Documentation"
onEditBtnClick={() => handleNewPathClick(ordersAmendPath)}
headerText="Orders"
step="2"
Expand Down
8 changes: 4 additions & 4 deletions src/pages/MyMove/Home/MoveHome.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ describe('Home component', () => {
const profileStep = wrapper.find('Step[step="1"]');
expect(profileStep.prop('editBtnLabel')).toEqual('Edit');
const orderStep = wrapper.find('Step[step="2"]');
expect(orderStep.prop('editBtnLabel')).toEqual('Upload documents');
expect(orderStep.prop('editBtnLabel')).toEqual('Upload/Manage Orders Documentation');
});

it('has appropriate step headers for orders with shipments', () => {
Expand Down Expand Up @@ -1233,7 +1233,7 @@ describe('Home component', () => {
const profileStep = wrapper.find('Step[step="1"]');
expect(profileStep.prop('editBtnLabel')).toEqual('Edit');
const orderStep = wrapper.find('Step[step="2"]');
expect(orderStep.prop('editBtnLabel')).toEqual('Upload documents');
expect(orderStep.prop('editBtnLabel')).toEqual('Upload/Manage Orders Documentation');
});

it('has appropriate step headers for orders with shipments', () => {
Expand Down Expand Up @@ -1277,7 +1277,7 @@ describe('Home component', () => {
const profileStep = wrapper.find('Step[step="1"]');
expect(profileStep.prop('editBtnLabel')).toEqual('Edit');
const orderStep = wrapper.find('Step[step="2"]');
expect(orderStep.prop('editBtnLabel')).toEqual('Upload documents');
expect(orderStep.prop('editBtnLabel')).toEqual('Upload/Manage Orders Documentation');
const advanceStep = wrapper.find('Step[step="5"]');
expect(advanceStep.prop('completedHeaderText')).toEqual('Advance request reviewed');
});
Expand Down Expand Up @@ -1560,7 +1560,7 @@ describe('Home component', () => {
const profileStep = wrapper.find('Step[step="1"]');
expect(profileStep.prop('editBtnLabel')).toEqual('Edit');
const orderStep = wrapper.find('Step[step="2"]');
expect(orderStep.prop('editBtnLabel')).toEqual('Upload documents');
expect(orderStep.prop('editBtnLabel')).toEqual('Upload/Manage Orders Documentation');
const advanceStep = wrapper.find('Step[step="5"]');
expect(advanceStep.prop('completedHeaderText')).toEqual('Advance request reviewed');
});
Expand Down

0 comments on commit e85ea79

Please sign in to comment.