From c9ae8b0f29e687c6fd0474edf423a3b3f694b9fe Mon Sep 17 00:00:00 2001 From: Jose Buitron Date: Wed, 4 Oct 2023 17:13:14 -0500 Subject: [PATCH] fix: Fixed tests text --- src/storyMap/components/StoryMapInvite.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storyMap/components/StoryMapInvite.test.js b/src/storyMap/components/StoryMapInvite.test.js index d0472e0fcf..440f82d2c7 100644 --- a/src/storyMap/components/StoryMapInvite.test.js +++ b/src/storyMap/components/StoryMapInvite.test.js @@ -120,7 +120,7 @@ test('StoryMapInvite: Invalid token', async () => { await waitFor(() => expect( within(screen.getByRole('alert')).getByText( - /Failed to accept Story Map invite/i + /Unable to accept Story Map invitation/i ) ).toBeInTheDocument() ); @@ -144,7 +144,7 @@ test('StoryMapInvite: Different user token', async () => { expect( within(screen.getByRole('alert')).getByText( - /You do not have permission to accept this Story Map invite/i + /You can't accept this Story Map invitation. You must be logged in using the email address shown in the invitation/i ) ).toBeInTheDocument();