diff --git a/src/components/Announcements/AnnouncementAction/AnnouncementAction.test.tsx b/src/components/Announcements/AnnouncementAction/AnnouncementAction.test.tsx index c0132cb9a..0d36620b5 100644 --- a/src/components/Announcements/AnnouncementAction/AnnouncementAction.test.tsx +++ b/src/components/Announcements/AnnouncementAction/AnnouncementAction.test.tsx @@ -50,13 +50,12 @@ const TestComponent: React.FC = ({ describe('AnnouncementAction', () => { describe('Icon', () => { it('initial', () => { - const { getByRole, queryByText } = render( + const { getByRole } = render( , ); - expect(queryByText('Contacts')).not.toBeInTheDocument(); - const icon = getByRole('button', { name: 'Contacts' }); + expect(icon.childNodes[0]).toHaveClass('material-icons'); userEvent.click(icon); expect(handlePerformAction).toHaveBeenCalled(); }); diff --git a/src/components/Announcements/Announcements.tsx b/src/components/Announcements/Announcements.tsx index f2fe0b1a3..2ba006374 100644 --- a/src/components/Announcements/Announcements.tsx +++ b/src/components/Announcements/Announcements.tsx @@ -96,8 +96,10 @@ const Announcement: React.FC = () => { switch (action.action) { case ActionEnum.Go: if (action.args) { - // TODO - Migrate the data on production, to convert to "Go" args to be to the new MPDX URL format - push(`/accountLists/${accountListId}/${action.args}`); + const args = action.args.startsWith('/') + ? action.args + : `/${action.args}`; + push(`/accountLists/${accountListId}${args}`); } break; case ActionEnum.AppealCreate: