Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
JunTaoLuo committed Dec 26, 2024
1 parent 19aa851 commit 7d9eaca
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 7d9eaca

Please sign in to comment.