From 7d9eacab15b252404a0c0efe65d1d9855940ec92 Mon Sep 17 00:00:00 2001 From: Jun Tao Luo Date: Thu, 26 Dec 2024 12:58:23 -0500 Subject: [PATCH] Fix unit test --- .../components/TypeOfCarePage/index.unit.spec.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/applications/vaos/new-appointment/components/TypeOfCarePage/index.unit.spec.js b/src/applications/vaos/new-appointment/components/TypeOfCarePage/index.unit.spec.js index 74bd6155bda8..0002e96d374e 100644 --- a/src/applications/vaos/new-appointment/components/TypeOfCarePage/index.unit.spec.js +++ b/src/applications/vaos/new-appointment/components/TypeOfCarePage/index.unit.spec.js @@ -299,7 +299,9 @@ describe('VAOS Page: TypeOfCarePage', () => { 'vaos-update-address-alert-displayed', ), ); - fireEvent.click(screen.getByText('Update your address')); + fireEvent.click( + screen.getByText('Go to your VA.gov profile (opens in new tab)'), + ); await waitFor( () => expect( @@ -355,7 +357,9 @@ describe('VAOS Page: TypeOfCarePage', () => { /To use some of the tool’s features, you need a home address on file/i, ), ).to.exist; - fireEvent.click(screen.getByText('Update your address')); + fireEvent.click( + screen.getByText('Go to your VA.gov profile (opens in new tab)'), + ); await waitFor( () => expect(